From 8360752b2abf594ad458fcfcbfbfa02886336f21 Mon Sep 17 00:00:00 2001 From: toxyy Date: Tue, 12 Sep 2023 00:34:54 -0400 Subject: [PATCH] [ticket/17188] Allow request variable to check multiline unicode Change set_var to check for multiline strings if multibyte 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 3f793d1c5d..ff81b7130f 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('/^./u', $result)) + if (!preg_match('/^./um', $result)) { $result = ''; }