Remove htmlspecialchars for Html::hidden
authorFomafix <fomafix@googlemail.com>
Thu, 9 Nov 2017 16:08:57 +0000 (17:08 +0100)
committerFomafix <fomafix@googlemail.com>
Thu, 9 Nov 2017 16:08:57 +0000 (17:08 +0100)
Html::hidden already makes an HTML escaping of the values.

This is a followup to ff2f868a9.

Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46

includes/EditPage.php

index 4260c99..ff224c5 100644 (file)
@@ -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 ) );