diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php index 8a99f0b2b5..84ae0d2dd2 100644 --- a/phpBB/includes/utf/utf_tools.php +++ b/phpBB/includes/utf/utf_tools.php @@ -394,7 +394,7 @@ $UTF8_LOWER_TO_UPPER = array( return ''; } - if (($offset + $length) > $strlen) + if (($offset + $length) > $strlen) { $length = '*'; } @@ -611,7 +611,7 @@ function utf8_encode_ncr($text) */ function utf8_encode_ncr_callback($m) { - return utf8_ord($m[0]); + return '&#' . utf8_ord($m[0]) . ';'; } function utf8_ord($chr)