dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95e4919
)
HistoryAction: Fix double-escaping
author
Bartosz Dziewoński
<matma.rex@gmail.com>
Fri, 29 Mar 2019 12:26:30 +0000
(13:26 +0100)
committer
Jdlrobson
<jrobson@wikimedia.org>
Fri, 29 Mar 2019 14:30:16 +0000
(14:30 +0000)
Change-Id: I8a1da7c07e1d90098868122904afa584d4df3d26
includes/actions/HistoryAction.php
patch
|
blob
|
history
diff --git
a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index
e9f8b6f
..
7ff6f7d
100644
(file)
--- 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() );