1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 12:30:42 +02:00

99 bugs on the wall ...

#11339
#11283

... 97 bugs on the wall ...


git-svn-id: file:///svn/phpbb/trunk@7658 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof
2007-05-21 12:15:16 +00:00
parent b7b68bff5d
commit beeb2281cd
2 changed files with 10 additions and 2 deletions

View File

@@ -1381,7 +1381,7 @@ function validate_username($username, $allowed_username = false)
foreach ($bad_usernames as $bad_username)
{
if (preg_match('#^' . $bad_username . '#', $clean_username))
if (preg_match('#^' . str_replace('#', '\#', $bad_username) . '#', $clean_username))
{
return 'USERNAME_DISALLOWED';
}