mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-14 19:25:33 +00:00
Properly escape messages passed to HTMLForm
THe messages in 'options' need to be HTML escaped. Spotted by the phan-taint-check plugin. Change-Id: I1e207e5ca644551ae56cdd484f5f29267b6d764f
This commit is contained in:
parent
ce7cb2c336
commit
87fac42511
|
@ -50,9 +50,9 @@ class PopupsHooks {
|
||||||
'label-message' => 'popups-prefs-optin-title',
|
'label-message' => 'popups-prefs-optin-title',
|
||||||
'help-message' => 'popups-prefs-conflicting-gadgets-info',
|
'help-message' => 'popups-prefs-conflicting-gadgets-info',
|
||||||
'options' => [
|
'options' => [
|
||||||
wfMessage( 'popups-prefs-optin-enabled-label' )->text()
|
wfMessage( 'popups-prefs-optin-enabled-label' )->escaped()
|
||||||
=> PopupsContext::PREVIEWS_ENABLED,
|
=> PopupsContext::PREVIEWS_ENABLED,
|
||||||
wfMessage( 'popups-prefs-optin-disabled-label' )->text()
|
wfMessage( 'popups-prefs-optin-disabled-label' )->escaped()
|
||||||
=> PopupsContext::PREVIEWS_DISABLED
|
=> PopupsContext::PREVIEWS_DISABLED
|
||||||
],
|
],
|
||||||
'section' => self::PREVIEWS_PREFERENCES_SECTION
|
'section' => self::PREVIEWS_PREFERENCES_SECTION
|
||||||
|
|
Loading…
Reference in a new issue