$wgOverrideSiteFeed was double escaping urls (noticed in bug 30621).
authorBrian Wolff <bawolff@users.mediawiki.org>
Wed, 7 Sep 2011 19:14:06 +0000 (19:14 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Wed, 7 Sep 2011 19:14:06 +0000 (19:14 +0000)
(aka it was giving things with &amp;amp; in them :s )

RELEASE-NOTES-1.18
includes/OutputPage.php

index 4abe94d..d011905 100644 (file)
@@ -443,6 +443,7 @@ production.
 * (bug 30074) Moving user JS subpages resulted in JS errors because
   #REDIRECT [[Foo]] is invalid JS
 * Tracking categories are no longer shown in footer for special pages
+* $wgOverrideSiteFeed no longer double escapes urls.
 
 === API changes in 1.18 ===
 * BREAKING CHANGE: action=watch now requires POST and token.
index 5b0070c..7b68ecf 100644 (file)
@@ -2885,9 +2885,10 @@ $distantTemplates
 
                        if ( $wgOverrideSiteFeed ) {
                                foreach ( $wgOverrideSiteFeed as $type => $feedUrl ) {
+                                       // Note, this->feedLink escapes the url.
                                        $tags[] = $this->feedLink(
                                                $type,
-                                               htmlspecialchars( $feedUrl ),
+                                               $feedUrl,
                                                wfMsg( "site-{$type}-feed", $wgSitename )
                                        );
                                }