HistoryAction: Fix double-escaping
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 29 Mar 2019 12:26:30 +0000 (13:26 +0100)
committerJdlrobson <jrobson@wikimedia.org>
Fri, 29 Mar 2019 14:30:16 +0000 (14:30 +0000)
Change-Id: I8a1da7c07e1d90098868122904afa584d4df3d26

includes/actions/HistoryAction.php

index e9f8b6f..7ff6f7d 100644 (file)
@@ -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() );