diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-04 11:05:47 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-04 11:05:47 +0000 |
commit | e2f445ae14471027ecd6045288b7ce81d571c16d (patch) | |
tree | af289d548408f74ab539300a0809292059aedd3b /phpBB/includes/functions_content.php | |
parent | 66a33c75a5e5185f1640ec686beaf8349543fde8 (diff) | |
download | forums-e2f445ae14471027ecd6045288b7ce81d571c16d.tar forums-e2f445ae14471027ecd6045288b7ce81d571c16d.tar.gz forums-e2f445ae14471027ecd6045288b7ce81d571c16d.tar.bz2 forums-e2f445ae14471027ecd6045288b7ce81d571c16d.tar.xz forums-e2f445ae14471027ecd6045288b7ce81d571c16d.zip |
Fix infinite loop in truncate_string (Bug #43475)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9424 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r-- | phpBB/includes/functions_content.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index c365b4d684..23cbff7e8f 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -1129,7 +1129,7 @@ function truncate_string($string, $max_length = 60, $max_store_length = 255, $al array_pop($chars); $string = implode('', $chars); } - while (!empty($char) && utf8_strlen($string) > $max_store_length); + while (!empty($chars) && utf8_strlen($string) > $max_store_length); } if ($strip_reply) |