From 961440e48fa5364ea049f418ec21cd295721925f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 2 Sep 2014 02:14:16 +0200 Subject: [PATCH] Cutting the text has to be made UTF-8 aware as well. --- include/plaintext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/plaintext.php b/include/plaintext.php index cf0e209c06..88febbfff8 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -116,7 +116,7 @@ function shortenmsg($msg, $limit, $twitter = false) { $msg = trim($msg."\n".$line); // Is the new message empty by now or is it a reshared message? elseif (($msg == "") OR (($row == 1) AND (substr($msg, 0, 4) == $recycle))) - $msg = substr(substr(trim($msg."\n".$line), 0, $limit), 0, -3)."..."; + $msg = iconv_substr(iconv_substr(trim($msg."\n".$line), 0, $limit, "UTF-8"), 0, -3, "UTF-8")."..."; else break; } -- 2.39.5