mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[ticket/8713] Do not trim login inputs
Create a function to request variables which are not trimmed. All requests for passwords (except forum passwords) now use the untrimmed request function. PHPBB3-8713
This commit is contained in:
@@ -3044,11 +3044,11 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||
trigger_error('NO_AUTH_ADMIN');
|
||||
}
|
||||
|
||||
$password = request_var('password_' . $credential, '', true);
|
||||
$password = $request->untrimed_variable('password_' . $credential, '', true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$password = request_var('password', '', true);
|
||||
$password = $request->untrimed_variable('password', '', true);
|
||||
}
|
||||
|
||||
$username = request_var('username', '', true);
|
||||
|
Reference in New Issue
Block a user