SpecialAllMessages: Specify filter messages so we always escape them
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Sun, 19 May 2019 13:51:25 +0000 (15:51 +0200)
committerJforrester <jforrester@wikimedia.org>
Sun, 19 May 2019 21:07:48 +0000 (21:07 +0000)
As reported by phan-taint-check, HTMLForm options have to be escaped.

Bug: T223821
Change-Id: I663911a2c3d8a5c60d407e84ec528f71af2eafe9

includes/specials/SpecialAllMessages.php

index 511b2e8..f6b8b90 100644 (file)
@@ -77,10 +77,10 @@ class SpecialAllMessages extends SpecialPage {
                                'type' => 'radio',
                                'name' => 'filter',
                                'label-message' => 'allmessages-filter',
-                               'options' => [
-                                       $this->msg( 'allmessages-filter-unmodified' )->text() => 'unmodified',
-                                       $this->msg( 'allmessages-filter-all' )->text() => 'all',
-                                       $this->msg( 'allmessages-filter-modified' )->text() => 'modified',
+                               'options-messages' => [
+                                       'allmessages-filter-unmodified' => 'unmodified',
+                                       'allmessages-filter-all' => 'all',
+                                       'allmessages-filter-modified' => 'modified',
                                ],
                                'default' => 'all',
                                'flatlist' => true,