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:
Paul S. Owen 2003-10-11 23:54:00 +00:00
parent 19f03aa6b7
commit 08b66d9025

View file

@ -104,7 +104,7 @@ function validate_username($username)
return false; 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'; return 'INVALID_CHARS';
} }