aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-05-21 12:15:16 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-05-21 12:15:16 +0000
commitbeeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92 (patch)
treeae20785642dccc69c592bc3998fb6c590eecbb5e /phpBB/includes/functions_user.php
parentb7b68bff5d02e0070f4f4cc6d9f28dd55c8b06c8 (diff)
downloadforums-beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92.tar
forums-beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92.tar.gz
forums-beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92.tar.bz2
forums-beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92.tar.xz
forums-beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92.zip
99 bugs on the wall ...
#11339 #11283 ... 97 bugs on the wall ... git-svn-id: file:///svn/phpbb/trunk@7658 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 cab9d8bc25..3c01186528 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('#^' . $bad_username . '#', $clean_username))
+ if (preg_match('#^' . str_replace('#', '\#', $bad_username) . '#', $clean_username))
{
return 'USERNAME_DISALLOWED';
}