diff options
author | Aryeh Gregor <simetrical@users.mediawiki.org> | 2009-12-13 20:24:17 +0000 |
---|---|---|
committer | Aryeh Gregor <simetrical@users.mediawiki.org> | 2009-12-13 20:24:17 +0000 |
commit | 3c50f821ad40762046c18571777b35a220cc3bfa (patch) | |
tree | c5a264cd1e340fd1f7f57cb720fa0d7620e24e35 /includes/extauth | |
parent | 3a2d0c4ef9dbff33cbe90cf6aa771ca3e3ec4298 (diff) | |
download | mediawikicore-3c50f821ad40762046c18571777b35a220cc3bfa.tar.gz mediawikicore-3c50f821ad40762046c18571777b35a220cc3bfa.zip |
vB strips whitespace from passwords
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/60015
Diffstat (limited to 'includes/extauth')
-rw-r--r-- | includes/extauth/vB.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/extauth/vB.php b/includes/extauth/vB.php index a41288cc2dc7..6f00874c891b 100644 --- a/includes/extauth/vB.php +++ b/includes/extauth/vB.php @@ -76,6 +76,8 @@ class ExternalUser_vB extends ExternalUser { public function getName() { return $this->mRow->username; } public function authenticate( $password ) { + # vBulletin seemingly strips whitespace from passwords + $password = trim( $password ); return $this->mRow->password == md5( md5( $password ) . $this->mRow->salt ); } |