mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
- implemented the suggested html_entity_decode function made by david
- fixed string length checking by also decoding entities for the sake of checking - used the new html_entity_decode function git-svn-id: file:///svn/phpbb/trunk@6545 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2728,7 +2728,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true)
|
||||
$string = substr($string, 4);
|
||||
}
|
||||
|
||||
$_chars = utf8_str_split(html_entity_decode($string));
|
||||
$_chars = utf8_str_split(utf8_html_entity_decode($string));
|
||||
$chars = array_map('htmlspecialchars', $_chars);
|
||||
|
||||
// Now check the length ;)
|
||||
|
Reference in New Issue
Block a user