From 790de961fc928d7f5a11f5105aeffba81473c6c5 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 1 May 2009 12:55:29 +0000 Subject: [PATCH] Sanitize class names applied by change tagging -- was not anticipating multi-word, ugly tag names --- includes/ChangeTags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index de804c5c95..2f967101d0 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -14,7 +14,7 @@ class ChangeTags { $displayTags = array(); foreach( $tags as $tag ) { $displayTags[] = self::tagDescription( $tag ); - $classes[] = "mw-tag-$tag"; + $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); } return array( '(' . implode( ', ', $displayTags ) . ')', $classes ); -- 2.20.1