Fomafix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/390273 )

Change subject: Remove htmlspecialchars for Html::hidden
......................................................................

Remove htmlspecialchars for Html::hidden

Html::hidden already makes an HTML escaping of the values.

This is a followup to ff2f868a9.

Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46
---
M includes/EditPage.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/73/390273/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 4260c99..ff224c5 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3288,7 +3288,7 @@
 
        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 ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/390273
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f63494038ffbdde0df34ad5566dfa03707dde46
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Fomafix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to