From: Fomafix Date: Thu, 9 Nov 2017 16:08:57 +0000 (+0100) Subject: Remove htmlspecialchars for Html::hidden X-Git-Tag: 1.31.0-rc.0~1543^2 X-Git-Url: http://git.cyclocoop.org/%27%20.generer_url_ecrire%28_request%28%27exec%27%29%2C%27cmd=switch&outil=rss_couteau_suisse%27%29.%27?a=commitdiff_plain;h=d7cef5989bbc693d099597c2678297fbf52fcc4e;p=lhc%2Fweb%2Fwiklou.git Remove htmlspecialchars for Html::hidden Html::hidden already makes an HTML escaping of the values. This is a followup to ff2f868a9. Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46 --- 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 ) );