r60015 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60014‎ | r60015 | r60016 >
Date:20:24, 13 December 2009
Author:simetrical
Status:ok
Tags:
Comment:
vB strips whitespace from passwords
Modified paths:
  • /trunk/phase3/includes/extauth/vB.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/extauth/vB.php
@@ -76,6 +76,8 @@
7777 public function getName() { return $this->mRow->username; }
7878
7979 public function authenticate( $password ) {
 80+ # vBulletin seemingly strips whitespace from passwords
 81+ $password = trim( $password );
8082 return $this->mRow->password == md5( md5( $password )
8183 . $this->mRow->salt );
8284 }

Status & tagging log