From 270555d982c885bb850d83df7fdc3f02dd8b5038 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 6 Nov 2016 21:55:35 +0900 Subject: [PATCH] Fix missing trim while splitting content --- common/framework/sms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/sms.php b/common/framework/sms.php index 1cb3884e4..fbbd03c10 100644 --- a/common/framework/sms.php +++ b/common/framework/sms.php @@ -746,7 +746,7 @@ class SMS $char_length = strlen(@iconv('UTF-8', $charset . '//IGNORE', $char)); if (($current_length + $char_length > $max_length) || ($current_length + $char_length > $max_length - 7 && ctype_space($char))) { - $result[] = $current_entry; + $result[] = trim($current_entry); $current_entry = $char; $current_length = $char_length; }