From d7cef5989bbc693d099597c2678297fbf52fcc4e Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 9 Nov 2017 17:08:57 +0100 Subject: [PATCH] Remove htmlspecialchars for Html::hidden Html::hidden already makes an HTML escaping of the values. This is a followup to ff2f868a9. Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46 --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 4260c99324..ff224c5598 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3288,7 +3288,7 @@ class EditPage { protected function showFormBeforeText() { $out = $this->context->getOutput(); - $out->addHTML( Html::hidden( 'wpSection', htmlspecialchars( $this->section ) ) ); + $out->addHTML( Html::hidden( 'wpSection', $this->section ) ); $out->addHTML( Html::hidden( 'wpStarttime', $this->starttime ) ); $out->addHTML( Html::hidden( 'wpEdittime', $this->edittime ) ); $out->addHTML( Html::hidden( 'editRevId', $this->editRevId ) ); -- 2.20.1