aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-09-08 15:01:29 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-09-08 15:01:29 +0200
commit1e05fd4c627d23b7756796c5acac27d2562a8607 (patch)
tree154084c1905193784e8b9783e33ae72c726606ba
parentcc0c378caf9bfc480391a9d11d5a4d78c0df097c (diff)
downloadforums-1e05fd4c627d23b7756796c5acac27d2562a8607.tar
forums-1e05fd4c627d23b7756796c5acac27d2562a8607.tar.gz
forums-1e05fd4c627d23b7756796c5acac27d2562a8607.tar.bz2
forums-1e05fd4c627d23b7756796c5acac27d2562a8607.tar.xz
forums-1e05fd4c627d23b7756796c5acac27d2562a8607.zip
[ticket/8713] Trim password in auth_db to keep compatibility.
PHPBB3-8713
-rw-r--r--phpBB/includes/auth/auth_db.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/auth/auth_db.php b/phpBB/includes/auth/auth_db.php
index 76790e4dad..ac944532a5 100644
--- a/phpBB/includes/auth/auth_db.php
+++ b/phpBB/includes/auth/auth_db.php
@@ -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)
{