From cf6e3879a58ab8955b55c2c6521140611c35c3ac Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 6 Jan 2009 23:46:32 +0000 Subject: [PATCH] (bug 16720) Transcluded Special:NewPages processes "/username=". Patch submitted by Brent G. --- CREDITS | 1 + RELEASE-NOTES | 1 + includes/specials/SpecialNewpages.php | 2 ++ 3 files changed, 4 insertions(+) diff --git a/CREDITS b/CREDITS index 3702afba3f..92bc76c6ee 100644 --- a/CREDITS +++ b/CREDITS @@ -57,6 +57,7 @@ following names for their contribution to the product. == Patch Contributors == * Agbad * Brad Jorsch +* Brent G * Daniel Arnold * Danny B. * FunPika diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 88df5075e6..1ea5d5d5cd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -260,6 +260,7 @@ The following extensions are migrated into MediaWiki 1.14: * Make "Did you mean" search feature more noticeable * Added "Advanced search" link to the search form * (bug 2242) Add an expiry time to temporary passwords +* (bug 16720) Transcluded Special:NewPages processes "/username=" === Bug fixes in 1.14 === diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index ff5a43c0d2..08e776d898 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -70,6 +70,8 @@ class SpecialNewpages extends SpecialPage { // PG offsets not just digits! if ( preg_match( '/^offset=([^=]+)$/', $bit, $m ) ) $this->opts->setValue( 'offset', intval($m[1]) ); + if ( preg_match( '/^username=(.*)$/', $bit, $m ) ) + $this->opts->setValue( 'username', $m[1] ); if ( preg_match( '/^namespace=(.*)$/', $bit, $m ) ) { $ns = $wgLang->getNsIndex( $m[1] ); if( $ns !== false ) { -- 2.20.1