From d2e95fa8e996dfe50cbe1255d1d6131cb4400767 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 4 Nov 2016 14:45:11 +0900 Subject: [PATCH] Normalize newline characters in content --- common/framework/sms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common/framework/sms.php b/common/framework/sms.php index 26ae2b8e0..41fe7c895 100644 --- a/common/framework/sms.php +++ b/common/framework/sms.php @@ -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; }