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

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
(cherry picked from commit d7cef5989bbc693d099597c2678297fbf52fcc4e)
---
M includes/EditPage.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/19/390819/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 22e8566..eeae7b9 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3255,7 +3255,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/390819
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: REL1_30
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Fomafix <[email protected]>

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

Reply via email to