From: Bartosz DziewoƄski Date: Fri, 29 Mar 2019 12:26:30 +0000 (+0100) Subject: HistoryAction: Fix double-escaping X-Git-Tag: 1.34.0-rc.0~2251 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=474986751875e0d63ce47ecd1ae819109e61ed31;p=lhc%2Fweb%2Fwiklou.git HistoryAction: Fix double-escaping Change-Id: I8a1da7c07e1d90098868122904afa584d4df3d26 --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index e9f8b6f064..7ff6f7df2d 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -229,7 +229,6 @@ class HistoryAction extends FormlessAction { } // Add the general form. - $action = htmlspecialchars( wfScript() ); $fields = [ [ 'name' => 'title', @@ -268,7 +267,7 @@ class HistoryAction extends FormlessAction { $htmlForm = HTMLForm::factory( 'ooui', $fields, $this->getContext() ); $htmlForm ->setMethod( 'get' ) - ->setAction( $action ) + ->setAction( wfScript() ) ->setId( 'mw-history-searchform' ) ->setSubmitText( $this->msg( 'historyaction-submit' )->text() ) ->setWrapperLegend( $this->msg( 'history-fieldset-title' )->text() );