From 9479bc428f10e166682087e8e61c19efcbbe2751 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 15 Sep 2006 22:38:42 +0000 Subject: [PATCH] yet another oops... git-svn-id: file:///svn/phpbb/trunk@6370 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/utf/utf_tools.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)