mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
git-svn-id: file:///svn/phpbb/trunk@7376 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7bc490b9bc
commit
8a668ffe67
2 changed files with 1 additions and 3 deletions
|
@ -1211,7 +1211,7 @@ function validate_username($username, $allowed_username = false)
|
||||||
|
|
||||||
case 'USERNAME_ALPHA_SPACERS':
|
case 'USERNAME_ALPHA_SPACERS':
|
||||||
$pcre = true;
|
$pcre = true;
|
||||||
$regex = '[-\]_+ ]+';
|
$regex = '[A-Za-z-\]_+ ]+';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'USERNAME_LETTER_NUM':
|
case 'USERNAME_LETTER_NUM':
|
||||||
|
|
|
@ -496,8 +496,6 @@ class ucp_register
|
||||||
break;
|
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(
|
$template->assign_vars(array(
|
||||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
||||||
'USERNAME' => $data['username'],
|
'USERNAME' => $data['username'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue