r53391 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53390‎ | r53391 | r53392 >
Date:10:07, 17 July 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix some unsanitized classes
Modified paths:
  • /trunk/phase3/includes/ChangeTags.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangeTags.php
@@ -14,7 +14,8 @@
1515 $displayTags = array();
1616 foreach( $tags as $tag ) {
1717 $displayTags[] = Xml::tags( 'span',
18 - array( 'class' => "mw-tag-marker mw-tag-marker-$tag" ),
 18+ array( 'class' => "mw-tag-marker ".
 19+ Sanitizer::escapeClass("mw-tag-marker-$tag") ),
1920 self::tagDescription( $tag ) );
2021 $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" );
2122 }

Status & tagging log