mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
git-svn-id: file:///svn/phpbb/trunk@7376 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1211,7 +1211,7 @@ function validate_username($username, $allowed_username = false)
|
||||
|
||||
case 'USERNAME_ALPHA_SPACERS':
|
||||
$pcre = true;
|
||||
$regex = '[-\]_+ ]+';
|
||||
$regex = '[A-Za-z-\]_+ ]+';
|
||||
break;
|
||||
|
||||
case 'USERNAME_LETTER_NUM':
|
||||
|
@@ -496,8 +496,6 @@ class ucp_register
|
||||
break;
|
||||
}
|
||||
|
||||
$user_char_ary = array('.*' => 'USERNAME_CHARS_ANY', '[a-z]+' => 'USERNAME_ALPHA_ONLY', '[-\]_+ [a-z]+' => 'USERNAME_ALPHA_SPACERS', '\w+' => 'USERNAME_LETTER_NUM', '[-\]_+ [\w]+' => 'USERNAME_LETTER_NUM_SPACERS', '[\x01-\x7F]+' => 'USERNAME_ASCII');
|
||||
|
||||
$template->assign_vars(array(
|
||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
||||
'USERNAME' => $data['username'],
|
||||
|
Reference in New Issue
Block a user