diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2005-11-28 10:19:57 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2005-11-28 10:19:57 +0000 |
commit | 0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef (patch) | |
tree | dda9260bcba90dcb163f13c27e275687945b0fa8 | |
parent | ee4d02132fc516a93c1444c12d6876b6601a74ac (diff) | |
download | forums-0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef.tar forums-0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef.tar.gz forums-0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef.tar.bz2 forums-0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef.tar.xz forums-0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef.zip |
Small bugfix for checking disallowed names
git-svn-id: file:///svn/phpbb/trunk@5312 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index f999ce62b6..3bb89ea429 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -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'; } |