Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1282,25 +1282,25 @@ |
1283 | 1283 | global $wgSitename; |
1284 | 1284 | $rctitle = SpecialPage::getTitleFor( 'Recentchanges' ); |
1285 | 1285 | $link = $rctitle->escapeFullURL( 'feed=rss' ); |
1286 | | - $title = wfMsg( 'site-rss-feed', $wgSitename ); |
| 1286 | + $title = Sanitizer::encodeAttribute( wfMsg( 'site-rss-feed', $wgSitename ) ); |
1287 | 1287 | $ret .= "<link rel='alternate' type='application/rss+xml' title='$title' href='$link' />\n"; |
1288 | 1288 | $link = $rctitle->escapeFullURL( 'feed=atom' ); |
1289 | | - $title = wfMsg( 'site-atom-feed', $wgSitename ); |
| 1289 | + $title = Sanitizer::encodeAttribute( wfMsg( 'site-atom-feed', $wgSitename ) ); |
1290 | 1290 | $ret .= "<link rel='alternate' type='application/atom+xml' title='$title' href='$link' />\n"; |
1291 | 1291 | |
1292 | 1292 | if( $this->isSyndicated() ) { |
1293 | 1293 | # FIXME: centralize the mime-type and name information in Feed.php |
1294 | | - $link = $wgRequest->escapeAppendQuery( 'feed=rss' ); |
1295 | 1294 | # Use the page name for the title (accessed through $wgTitle since |
1296 | 1295 | # there's no other way). In principle, this could lead to issues |
1297 | 1296 | # with having the same name for different feeds corresponding to |
1298 | 1297 | # the same page, but we can't avoid that at this low a level. |
1299 | 1298 | global $wgTitle; |
1300 | 1299 | $pagetitle = $wgTitle->getPrefixedText(); |
1301 | | - $title = wfMsg( 'page-rss-feed', $pagetitle ); |
| 1300 | + $link = $wgRequest->escapeAppendQuery( 'feed=rss' ); |
| 1301 | + $title = Sanitizer::encodeAttribute( wfMsg( 'page-rss-feed', $pagetitle ) ); |
1302 | 1302 | $ret .= "<link rel='alternate' type='application/rss+xml' title='$title' href='$link' />\n"; |
1303 | 1303 | $link = $wgRequest->escapeAppendQuery( 'feed=atom' ); |
1304 | | - $title = wfMsg( 'page-atom-feed', $pagetitle ); |
| 1304 | + $title = Sanitizer::encodeAttribute( wfMsg( 'page-atom-feed', $pagetitle ) ); |
1305 | 1305 | $ret .= "<link rel='alternate' type='application/atom+xml' title='$title' href='$link' />\n"; |
1306 | 1306 | } |
1307 | 1307 | |