diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-31 15:43:39 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-31 15:43:39 +0000 |
commit | 918ae64f4b604c5a1db9c0133ab61f11da18c594 (patch) | |
tree | 46069525168debe955694329445fc6e505e23184 /phpBB/posting.php | |
parent | 6a3f8902c836685873a070089c1baa6ced598680 (diff) | |
download | forums-918ae64f4b604c5a1db9c0133ab61f11da18c594.tar forums-918ae64f4b604c5a1db9c0133ab61f11da18c594.tar.gz forums-918ae64f4b604c5a1db9c0133ab61f11da18c594.tar.bz2 forums-918ae64f4b604c5a1db9c0133ab61f11da18c594.tar.xz forums-918ae64f4b604c5a1db9c0133ab61f11da18c594.zip |
fixed: username validation in posting.php
git-svn-id: file:///svn/phpbb/trunk@4770 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files 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; } |