r77024 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77023‎ | r77024 | r77025 >
Date:19:01, 19 November 2010
Author:mah
Status:ok
Tags:
Comment:
followup r76848 Make sure to use wfEscapeWikiText
Modified paths:
  • /trunk/extensions/RSS/RSSParser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RSS/RSSParser.php
@@ -251,9 +251,9 @@
252252 // rogue <script> tags neutered.
253253 foreach ( array_keys( $item ) as $info ) {
254254 if ( isset( $displayFields[ $info ] ) ) {
255 - $txt = $this->highlightTerms( htmlspecialchars( $item[ $info ] ) );
 255+ $txt = $this->highlightTerms( wfEscapeWikiText( $item[ $info ] ) );
256256 } else {
257 - $txt = htmlspecialchars( $item[ $info ] );
 257+ $txt = wfEscapeWikiText( $item[ $info ] );
258258 }
259259 $rendered = str_replace( '{{{' . $info . '}}}', $txt, $rendered );
260260 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76848* Remove references to unused charset handling....mah23:21, 16 November 2010

Status & tagging log