Merge "Use htmlspecialchars not htmlentities to escape tags on Version."
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 12 Jul 2014 08:34:52 +0000 (08:34 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 12 Jul 2014 08:34:52 +0000 (08:34 +0000)
includes/specials/SpecialVersion.php

index 576b625..a857da4 100644 (file)
@@ -513,7 +513,7 @@ class SpecialVersion extends SpecialPage {
                        );
 
                        array_walk( $tags, function ( &$value ) {
-                               $value = '&lt;' . htmlentities( $value ) . '&gt;';
+                               $value = '&lt;' . htmlspecialchars( $value ) . '&gt;';
                        } );
                        $out .= $this->listToText( $tags );
                } else {