[ticket/8713] Trim password in auth_db to keep compatibility.

PHPBB3-8713
This commit is contained in:
Andreas Fischer 2012-09-08 15:01:29 +02:00
parent cc0c378caf
commit 1e05fd4c62

View file

@ -41,6 +41,10 @@ function login_db($username, $password, $ip = '', $browser = '', $forwarded_for
global $db, $config;
global $request;
// Auth plugins get the password untrimmed.
// For compatibility we trim() here.
$password = trim($password);
// do not allow empty password
if (!$password)
{