mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Slashing of allowed username chars corrected ... may not appear to work "correctly" till remaining changes are committed
git-svn-id: file:///svn/phpbb/trunk@4555 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -104,7 +104,7 @@ function validate_username($username)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!preg_match('#^' . $config['allow_name_chars'] . '$#i', $username))
|
||||
if (!preg_match('#^' . str_replace('\\\\', '\\', $config['allow_name_chars']) . '$#i', $username))
|
||||
{
|
||||
return 'INVALID_CHARS';
|
||||
}
|
||||
|
Reference in New Issue
Block a user