diff options
Diffstat (limited to 'phpBB/includes')
-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 4feb17cac5..46ea90fa3a 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1303,12 +1303,12 @@ function validate_username($username, $allowed_username = false) case 'USERNAME_ALPHA_ONLY': $pcre = true; - $regex = '[A-Za-z]+'; + $regex = '[A-Za-z0-9]+'; break; case 'USERNAME_ALPHA_SPACERS': $pcre = true; - $regex = '[A-Za-z-\]_+ ]+'; + $regex = '[A-Za-z0-9-[\]_+ ]+'; break; case 'USERNAME_LETTER_NUM': |