aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-01-31 15:43:39 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-01-31 15:43:39 +0000
commit918ae64f4b604c5a1db9c0133ab61f11da18c594 (patch)
tree46069525168debe955694329445fc6e505e23184 /phpBB/posting.php
parent6a3f8902c836685873a070089c1baa6ced598680 (diff)
downloadforums-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.php5
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;
}