diff options
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; } |