Index: branches/wmf-deployment/includes/specials/SpecialUserrights.php |
— | — | @@ -54,7 +54,6 @@ |
55 | 55 | } else { |
56 | 56 | $this->mTarget = $wgRequest->getVal( 'user' ); |
57 | 57 | } |
58 | | - $this->mTarget = User::getCanonicalName( $this->mTarget ); |
59 | 58 | |
60 | 59 | /* |
61 | 60 | * If the user is blocked and they only have "partial" access |
— | — | @@ -312,6 +311,12 @@ |
313 | 312 | if( !$name ) { |
314 | 313 | return new WikiErrorMsg( 'noname' ); |
315 | 314 | } |
| 315 | + } else { |
| 316 | + $name = User::getCanonicalName( $name ); |
| 317 | + if( !$name ) { |
| 318 | + // invalid name |
| 319 | + return new WikiErrorMsg( 'nosuchusershort', $username ); |
| 320 | + } |
316 | 321 | } |
317 | 322 | |
318 | 323 | if( $database == '' ) { |
Property changes on: branches/wmf-deployment/includes/specials/SpecialUserrights.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
319 | 324 | + /branches/REL1_15/phase3/includes/specials/SpecialUserrights.php:51646 |
/branches/wmf-deployment/includes/specials/SpecialUserrights.php:53381 |
/trunk/phase3/includes/specials/SpecialUserrights.php:56188,57064 |