trim $this->mUserName var so that login attempt throttle key isn't fragmented with...
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Jul 2011 09:49:03 +0000 (09:49 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Jul 2011 09:49:03 +0000 (09:49 +0000)
includes/specials/SpecialChangePassword.php

index ab5aad1..230da61 100644 (file)
@@ -42,7 +42,7 @@ class SpecialChangePassword extends SpecialPage {
                        return;
                }
 
-               $this->mUserName = $wgRequest->getVal( 'wpName' );
+               $this->mUserName = trim( $wgRequest->getVal( 'wpName' ) );
                $this->mOldpass = $wgRequest->getVal( 'wpPassword' );
                $this->mNewpass = $wgRequest->getVal( 'wpNewPassword' );
                $this->mRetype = $wgRequest->getVal( 'wpRetype' );