From: Aaron Schulz Date: Sat, 23 Jul 2011 09:49:03 +0000 (+0000) Subject: trim $this->mUserName var so that login attempt throttle key isn't fragmented with... X-Git-Tag: 1.31.0-rc.0~28668 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=ba4136b91af4885f217fa69befc57507a82483a1;p=lhc%2Fweb%2Fwiklou.git trim $this->mUserName var so that login attempt throttle key isn't fragmented with spaces --- diff --git a/includes/specials/SpecialChangePassword.php b/includes/specials/SpecialChangePassword.php index ab5aad180c..230da61870 100644 --- a/includes/specials/SpecialChangePassword.php +++ b/includes/specials/SpecialChangePassword.php @@ -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' );