From abed2a04a66163c2a4284dea180e2cbfb7f2fd03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 27 Sep 2005 19:38:29 +0000 Subject: [PATCH] * Documentation * Safe xhtml output with htmlspecialchars() --- includes/SpecialVersion.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.20.1