diff options
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/request/type_cast_helper.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/request/type_cast_helper.php b/phpBB/includes/request/type_cast_helper.php index ff392fbf8f..7b8aacc5a9 100644 --- a/phpBB/includes/request/type_cast_helper.php +++ b/phpBB/includes/request/type_cast_helper.php @@ -103,6 +103,11 @@ class phpbb_type_cast_helper implements phpbb_type_cast_helper_interface { $result = trim(htmlspecialchars(str_replace(array("\r\n", "\r", "\0"), array("\n", "\n", ''), $result), ENT_COMPAT, 'UTF-8')); + if ($multibyte) + { + $result = utf8_normalize_nfc($result); + } + if (!empty($result)) { // Make sure multibyte characters are wellformed |