mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +02:00
Small bugfix for checking disallowed names
git-svn-id: file:///svn/phpbb/trunk@5312 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ee4d02132f
commit
0dc59b9e0d
@ -871,7 +871,7 @@ function validate_username($username)
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (preg_match('#' . str_replace('*', '.*?', preg_quote($row['disallow_username'], '#')) . '#i', $username))
|
||||
if (preg_match('#^' . str_replace('*', '.*?', preg_quote($row['disallow_username'], '$#')) . '#i', $username))
|
||||
{
|
||||
return 'USERNAME_DISALLOWED';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user