diff --git a/phpBB/phpbb/request/type_cast_helper.php b/phpBB/phpbb/request/type_cast_helper.php index ff81b7130f..796ffd3d3f 100644 --- a/phpBB/phpbb/request/type_cast_helper.php +++ b/phpBB/phpbb/request/type_cast_helper.php @@ -55,7 +55,7 @@ class type_cast_helper implements \phpbb\request\type_cast_helper_interface // Make sure multibyte characters are wellformed if ($multibyte) { - if (!preg_match('/^./um', $result)) + if (!preg_match('//u', $result)) { $result = ''; }