Normalize newline characters in content

This commit is contained in:
Kijin Sung 2016-11-04 14:45:11 +09:00
parent 0b01c52d98
commit d2e95fa8e9

View file

@ -243,6 +243,7 @@ class SMS
public function setBody($content)
{
$this->content = utf8_trim(utf8_clean($content));
$this->content = strtr($this->content, array("\r\n" => "\n"));
return true;
}