From ba4136b91af4885f217fa69befc57507a82483a1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 23 Jul 2011 09:49:03 +0000 Subject: [PATCH] trim $this->mUserName var so that login attempt throttle key isn't fragmented with spaces --- includes/specials/SpecialChangePassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ); -- 2.20.1