From 08b66d902593bc60775066bc33e91402f274dad7 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 11 Oct 2003 23:54:00 +0000 Subject: [PATCH] Slashing of allowed username chars corrected ... may not appear to work "correctly" till remaining changes are committed git-svn-id: file:///svn/phpbb/trunk@4555 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 bf2eb2c4dd..7df2b0a60b 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -104,7 +104,7 @@ function validate_username($username) return false; } - if (!preg_match('#^' . $config['allow_name_chars'] . '$#i', $username)) + if (!preg_match('#^' . str_replace('\\\\', '\\', $config['allow_name_chars']) . '$#i', $username)) { return 'INVALID_CHARS'; }