From beeb2281cd3c4c20ae960a1ebbe19e0d0b5a4b92 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Mon, 21 May 2007 12:15:16 +0000 Subject: 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 --- phpBB/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_user.php') 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'; } -- cgit v1.2.1