(bug 17864 + bug 19519) - Do input normalization on the username before doing existen...
authorAlex Z <mrzman@users.mediawiki.org>
Wed, 5 Aug 2009 04:42:54 +0000 (04:42 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Wed, 5 Aug 2009 04:42:54 +0000 (04:42 +0000)
RELEASE-NOTES
includes/specials/SpecialUserrights.php

index ff6fa7f..0dbb7f5 100644 (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 ==
 
index 8b77669..409b3f1 100644 (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