From: Ævar Arnfjörð Bjarmason Date: Tue, 27 Sep 2005 19:38:29 +0000 (+0000) Subject: * Documentation X-Git-Tag: 1.6.0~1572 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=abed2a04a66163c2a4284dea180e2cbfb7f2fd03;p=lhc%2Fweb%2Fwiklou.git * Documentation * Safe xhtml output with htmlspecialchars() --- diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 5c9424e1c9..3ef0e67a34 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -6,6 +6,7 @@ * @subpackage SpecialPage * * @author Ævar Arnfjörð Bjarmason + * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ @@ -137,7 +138,7 @@ class SpecialVersion { if ( isset( $author ) ) $ret .= ' by ' . $this->langObj->listToText( (array)$author ); - return "$ret\n"; + return htmlspecialchars( $ret ) . "\n"; } function wgHooks() {