mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/8713] Trim password in auth_db to keep compatibility.
PHPBB3-8713
This commit is contained in:
parent
cc0c378caf
commit
1e05fd4c62
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue