aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-21 17:50:12 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-21 17:50:12 +0000
commitc7853e2a4e5782309d9da0db3a890233a8684389 (patch)
tree4d41c3dc5ff34d8f7e01b02479f5e6be1946c0d0 /phpBB/includes/functions_user.php
parent93c91c4a91bebc81424b5a4244f7129ab119c6c9 (diff)
downloadforums-c7853e2a4e5782309d9da0db3a890233a8684389.tar
forums-c7853e2a4e5782309d9da0db3a890233a8684389.tar.gz
forums-c7853e2a4e5782309d9da0db3a890233a8684389.tar.bz2
forums-c7853e2a4e5782309d9da0db3a890233a8684389.tar.xz
forums-c7853e2a4e5782309d9da0db3a890233a8684389.zip
Better this way :D
git-svn-id: file:///svn/phpbb/trunk@7660 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 3c01186528..cab9d8bc25 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1381,7 +1381,7 @@ function validate_username($username, $allowed_username = false)
foreach ($bad_usernames as $bad_username)
{
- if (preg_match('#^' . str_replace('#', '\#', $bad_username) . '#', $clean_username))
+ if (preg_match('#^' . $bad_username . '#', $clean_username))
{
return 'USERNAME_DISALLOWED';
}