From 474986751875e0d63ce47ecd1ae819109e61ed31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 29 Mar 2019 13:26:30 +0100 Subject: [PATCH] HistoryAction: Fix double-escaping Change-Id: I8a1da7c07e1d90098868122904afa584d4df3d26 --- includes/actions/HistoryAction.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() ); -- 2.20.1