Sanitize class names applied by change tagging -- was not anticipating multi-word...
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 1 May 2009 12:55:29 +0000 (12:55 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 1 May 2009 12:55:29 +0000 (12:55 +0000)
includes/ChangeTags.php

index de804c5..2f96710 100644 (file)
@@ -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 );