Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | file description page for multi-paged documents. |
27 | 27 | * (bug 28883) Message names for different compression types commonly |
28 | 28 | used in Tiff files. |
| 29 | +* When translcuding a special page, do not let it interpret url parameters. |
29 | 30 | |
30 | 31 | === API changes in 1.19 === |
31 | 32 | |
Index: trunk/phase3/includes/SpecialPageFactory.php |
— | — | @@ -472,13 +472,18 @@ |
473 | 473 | * @return String: HTML fragment |
474 | 474 | */ |
475 | 475 | static function capturePath( &$title ) { |
476 | | - global $wgOut, $wgTitle; |
| 476 | + global $wgOut, $wgTitle, $wgRequest; |
477 | 477 | |
478 | 478 | $oldTitle = $wgTitle; |
479 | 479 | $oldOut = $wgOut; |
| 480 | + $oldRequest = $wgRequest; |
480 | 481 | |
| 482 | + // Don't want special pages interpreting ?feed=atom parameters. |
| 483 | + $wgRequest = new FauxRequest( array() ); |
| 484 | + |
481 | 485 | $context = new RequestContext; |
482 | 486 | $context->setTitle( $title ); |
| 487 | + $context->setRequest( $wgRequest ); |
483 | 488 | $wgOut = $context->getOutput(); |
484 | 489 | |
485 | 490 | $ret = self::executePath( $title, $context, true ); |
— | — | @@ -487,6 +492,7 @@ |
488 | 493 | } |
489 | 494 | $wgTitle = $oldTitle; |
490 | 495 | $wgOut = $oldOut; |
| 496 | + $wgRequest = $oldRequest; |
491 | 497 | return $ret; |
492 | 498 | } |
493 | 499 | |
— | — | @@ -541,4 +547,4 @@ |
542 | 548 | return null; |
543 | 549 | } |
544 | 550 | } |
545 | | -} |
\ No newline at end of file |
| 551 | +} |