From 918ae64f4b604c5a1db9c0133ab61f11da18c594 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 31 Jan 2004 15:43:39 +0000 Subject: [PATCH] fixed: username validation in posting.php git-svn-id: file:///svn/phpbb/trunk@4770 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 1401eca47b..a0a2db74a9 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -611,9 +611,8 @@ if ($submit || $preview || $refresh) if (($username && $user->data['user_id'] == ANONYMOUS) || ($mode == 'edit' && $post_username)) { include($phpbb_root_path . 'includes/functions_user.' . $phpEx); - $username = strip_tags(htmlspecialchars($username)); - - if (($result = validate_username($username)) != false) + + if (($result = validate_username(($mode == 'edit' && $post_username) ? $post_username : $username)) != false) { $error[] = $result; }