mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/8713] Trim password in auth_db to keep compatibility.
PHPBB3-8713
This commit is contained in:
@@ -41,6 +41,10 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
|
|||||||
global $db, $config;
|
global $db, $config;
|
||||||
global $request;
|
global $request;
|
||||||
|
|
||||||
|
// Auth plugins get the password untrimmed.
|
||||||
|
// For compatibility we trim() here.
|
||||||
|
$password = trim($password);
|
||||||
|
|
||||||
// do not allow empty password
|
// do not allow empty password
|
||||||
if (!$password)
|
if (!$password)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user