From 0e96aa60c2cf94e72434f9ab91de70a3a0848ae8 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 31 May 2003 17:55:55 +0000 Subject: [PATCH] Well, at least the little prat @ area51 led to a bug fix ... git-svn-id: file:///svn/phpbb/trunk@4069 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 b5c128cf46..d8616db231 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -277,7 +277,7 @@ class ucp extends user 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'; }