From 31186c980c4a9c85f208123ecb0344c4567a682a Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 17 Jul 2009 10:07:10 +0000 Subject: [PATCH] Fix some unsanitized classes --- includes/ChangeTags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index 23329c4570..ed7e29b32b 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -14,7 +14,8 @@ class ChangeTags { $displayTags = array(); foreach( $tags as $tag ) { $displayTags[] = Xml::tags( 'span', - array( 'class' => "mw-tag-marker mw-tag-marker-$tag" ), + array( 'class' => "mw-tag-marker ". + Sanitizer::escapeClass("mw-tag-marker-$tag") ), self::tagDescription( $tag ) ); $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); } -- 2.20.1