-
Bug
-
Resolution: Fixed
-
Blocker
-
3.0.x
-
None
-
PHP Environment: 5.2.6
Database: MySQL 5.0.37
The function truncate_string will be trapped in an infinite loop, when given a half-baked non-unicode string. The attachment is a script to trigger the infinite loop.
Fix:
change
while (utf8_strlen($string) > $max_store_length || !sizeof($chars));
to
while (utf8_strlen($string) > $max_store_length || sizeof($chars));