git-svn-id: file:///svn/phpbb/trunk@7376 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-04-19 22:58:15 +00:00
parent 7bc490b9bc
commit 8a668ffe67
2 changed files with 1 additions and 3 deletions

View file

@ -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':

View file

@ -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'],