From: Siebrand Mazeland Date: Tue, 6 Jan 2009 23:46:32 +0000 (+0000) Subject: (bug 16720) Transcluded Special:NewPages processes "/username=". Patch submitted... X-Git-Tag: 1.31.0-rc.0~43542 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=cf6e3879a58ab8955b55c2c6521140611c35c3ac;p=lhc%2Fweb%2Fwiklou.git (bug 16720) Transcluded Special:NewPages processes "/username=". Patch submitted by Brent G. --- 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 ) {