mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-04 19:51:39 +02:00
fixed username validation if username is already parsed through htmlspecialchars or user try to enforce invalid characters. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3522 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -99,7 +99,7 @@ function validate_username($username)
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Don't allow " in username.
|
||||
if (strstr($username, '"'))
|
||||
if (strstr($username, '"') || strstr($username, '"'))
|
||||
{
|
||||
return array('error' => true, 'error_msg' => $lang['Username_invalid']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user