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:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user