aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf/utf_tools.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/utf/utf_tools.php')
-rw-r--r--phpBB/includes/utf/utf_tools.php4
1 files 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)