(bug 17864 + bug 19519) - Do input normalization on the username before doing existence/permission checks

This commit is contained in:
Alex Z 2009-08-05 04:42:54 +00:00
parent 2707614590
commit cfc5850dff
2 changed files with 2 additions and 0 deletions

View file

@ -390,6 +390,7 @@ this. Was used when mwEmbed was going to be an extension.
and issue with Opera (bug 18497) where fullscreen mode is assumed to be
projection mode and the style sheet for screen media is no longer used.
* (bug 16084) Default memory limit has be increased to 50M, see $wgMemoryLimit
* (bug 17864/19519) Added proper input normalization in Special:UserRights
== API changes in 1.16 ==

View file

@ -54,6 +54,7 @@ class UserrightsPage extends SpecialPage {
} else {
$this->mTarget = $wgRequest->getVal( 'user' );
}
$this->mTarget = User::getCanonicalName( $this->mTarget );
/*
* If the user is blocked and they only have "partial" access