From d4e0840e6f659a0782ad00e6fa51c00f715ca4b6 Mon Sep 17 00:00:00 2001 From: toxyy Date: Thu, 5 Oct 2023 16:16:30 -0400 Subject: [PATCH] [ticket/17188] Change regex being edited Change the edited regex to ruben's recommendation PHPBB3-17188 --- phpBB/phpbb/request/type_cast_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; }