dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2d0c4
)
vB strips whitespace from passwords
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 13 Dec 2009 20:24:17 +0000
(20:24 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 13 Dec 2009 20:24:17 +0000
(20:24 +0000)
includes/extauth/vB.php
patch
|
blob
|
history
diff --git
a/includes/extauth/vB.php
b/includes/extauth/vB.php
index
a41288c
..
6f00874
100644
(file)
--- 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 );
}