From: Brion Vibber Date: Tue, 12 Sep 2006 20:28:07 +0000 (+0000) Subject: * (bug 7299) Normalize username filter on Special:Newpages X-Git-Tag: 1.31.0-rc.0~55789 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=feea457c45c82cff0f1434c45a4d09e1712ddc8f;p=lhc%2Fweb%2Fwiklou.git * (bug 7299) Normalize username filter on Special:Newpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0ae27ad4a3..0fcfc69b5e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -196,6 +196,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6777) Remove some PHP 4 compat cruft * Add --user, --comment, and --license options to importImages.php * (bug 6216) The immobile namespace message does not mention the source page +* (bug 7299) Normalize username filter on Special:Newpages == Languages updated == diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index c050137393..3fd0eba27f 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -30,7 +30,12 @@ class NewPagesPage extends QueryPage { } function makeUserWhere( &$dbo ) { - return $this->username ? ' AND rc_user_text = ' . $dbo->addQuotes( $this->username ) : ''; + $title = Title::makeTitleSafe( NS_USER, $this->username ); + if( $title ) { + return ' AND rc_user_text = ' . $dbo->addQuotes( $title->getText() ); + } else { + return ''; + } } function getSQL() {