From: Brian Wolff Date: Fri, 11 Jul 2014 22:02:20 +0000 (-0300) Subject: Use htmlspecialchars not htmlentities to escape tags on Version. X-Git-Tag: 1.31.0-rc.0~14978^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=b7b2917a8b5a461d9f52caa64e435a847957a787;p=lhc%2Fweb%2Fwiklou.git Use htmlspecialchars not htmlentities to escape tags on Version. htmlentities assumes that the text is iso 8859-1 prior to php 5.4 Also we use htmlspecialchars almost everywhere else. Bug: 67840 Change-Id: I73364ac34ef7a24c48c09ec1f87102a6cbee8d8f --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 576b625792..a857da4af2 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -513,7 +513,7 @@ class SpecialVersion extends SpecialPage { ); array_walk( $tags, function ( &$value ) { - $value = '<' . htmlentities( $value ) . '>'; + $value = '<' . htmlspecialchars( $value ) . '>'; } ); $out .= $this->listToText( $tags ); } else {