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; }