Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -858,7 +858,7 @@ |
859 | 859 | global $wgRequest; |
860 | 860 | $params = array(); |
861 | 861 | foreach( $this->mAllowedRedirectParams as $arg ) { |
862 | | - if( $val = $wgRequest->getVal( $arg, false ) ) |
| 862 | + if( ( $val = $wgRequest->getVal( $arg, null ) ) !== null ) |
863 | 863 | $params[] = $arg . '=' . $val; |
864 | 864 | } |
865 | 865 | |
— | — | @@ -965,6 +965,8 @@ |
966 | 966 | class SpecialMycontributions extends UnlistedSpecialPage { |
967 | 967 | function __construct() { |
968 | 968 | parent::__construct( 'Mycontributions' ); |
| 969 | + $this->mAllowedRedirectParams = array( 'limit', 'namespace', 'tagfilter', |
| 970 | + 'offset', 'dir', 'year', 'month', 'feed' ); |
969 | 971 | } |
970 | 972 | |
971 | 973 | function getRedirect( $subpage ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -674,6 +674,9 @@ |
675 | 675 | * (bug 20549) Parser tests were broken on SQLite backend |
676 | 676 | * (bug 21776) Interwiki urls like http://en.wikibooks.org/wiki/cs: should give |
677 | 677 | a redirect instead of a baderror. |
| 678 | +* (bug 21803) Special:MyContributions now keeps the query string parameters |
| 679 | +* Redirecting special pages now keep query string paramters set to "0" (e.g. |
| 680 | + for namespace) |
678 | 681 | |
679 | 682 | == API changes in 1.16 == |
680 | 683 | |