mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 14:48:28 +01:00
fixed: username validation in posting.php
git-svn-id: file:///svn/phpbb/trunk@4770 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6a3f8902c8
commit
918ae64f4b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user