From 0dc59b9e0d1bd7d10fa3dddae3541f2dba01f4ef Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Mon, 28 Nov 2005 10:19:57 +0000 Subject: [PATCH] Small bugfix for checking disallowed names git-svn-id: file:///svn/phpbb/trunk@5312 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }