Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -589,6 +589,7 @@ |
590 | 590 | */ |
591 | 591 | public static function incLoginThrottle( $username ) { |
592 | 592 | global $wgPasswordAttemptThrottle, $wgMemc; |
| 593 | + $username = trim( $username ); // sanity |
593 | 594 | |
594 | 595 | $throttleCount = 0; |
595 | 596 | if ( is_array( $wgPasswordAttemptThrottle ) ) { |
— | — | @@ -616,6 +617,7 @@ |
617 | 618 | */ |
618 | 619 | public static function clearLoginThrottle( $username ) { |
619 | 620 | global $wgMemc; |
| 621 | + $username = trim( $username ); // sanity |
620 | 622 | |
621 | 623 | $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $username ) ); |
622 | 624 | $wgMemc->delete( $throttleKey ); |