mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3587 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -308,7 +308,7 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||
{
|
||||
unset($rename_user);
|
||||
|
||||
if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) )
|
||||
if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) )
|
||||
{
|
||||
$result = validate_username($username);
|
||||
if ( $result['error'] )
|
||||
@@ -316,6 +316,11 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||
$error = TRUE;
|
||||
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg'];
|
||||
}
|
||||
else if ( strtolower(str_replace("\'", "''", $username)) == strtolower($userdata['username']) )
|
||||
{
|
||||
$error = TRUE;
|
||||
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Username_taken'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
|
Reference in New Issue
Block a user