diff options
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 9ab9d6d568..b99393d24a 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1490,7 +1490,7 @@ function validate_username($username, $allowed_username = false) $mbstring = $pcre = false; // generic UTF-8 character types supported? - if (@preg_match('/\p{L}/u', 'a') !== false) + if (pcre_utf8_support()) { $pcre = true; } @@ -1626,7 +1626,7 @@ function validate_password($password) $pcre = $mbstring = false; // generic UTF-8 character types supported? - if (@preg_match('/\p{L}/u', 'a') !== false) + if (pcre_utf8_support()) { $upp = '\p{Lu}'; $low = '\p{Ll}'; |