aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 2ce788e80a..3742d89475 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3512,7 +3512,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append
if (sizeof($chars) > $max_length)
{
// Cut off the last elements from the array
- $string = implode('', array_slice($chars, 0, $max_length));
+ $string = implode('', array_slice($chars, 0, $max_length - utf8_strlen($append)));
$stripped = true;
}