summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/luci.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-18 13:51:16 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-18 13:51:16 +0200
commit934fa275b23f93ca6fe4eac5db6a6a6ee3f9581c (patch)
tree535c230d2bd6d29bedc7dc32cd37362ab0ecd264 /modules/luci-base/htdocs/luci-static/resources/luci.js
parent982b08f45d400f63cab38daf6a99b5b690794d24 (diff)
luci-base: ensure that button labels are properly html escaped
Fixes: #3067 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/luci.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/luci.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js
index 0b7ec6ea86..af2b179ce3 100644
--- a/modules/luci-base/htdocs/luci-static/resources/luci.js
+++ b/modules/luci-base/htdocs/luci-static/resources/luci.js
@@ -1344,15 +1344,15 @@
this.handleSaveApply ? E('button', {
'class': 'cbi-button cbi-button-apply',
'click': L.ui.createHandlerFn(this, 'handleSaveApply')
- }, _('Save & Apply')) : '', ' ',
+ }, [ _('Save & Apply') ]) : '', ' ',
this.handleSave ? E('button', {
'class': 'cbi-button cbi-button-save',
'click': L.ui.createHandlerFn(this, 'handleSave')
- }, _('Save')) : '', ' ',
+ }, [ _('Save') ]) : '', ' ',
this.handleReset ? E('button', {
'class': 'cbi-button cbi-button-reset',
'click': L.ui.createHandlerFn(this, 'handleReset')
- }, _('Reset')) : ''
+ }, [ _('Reset') ]) : ''
]));
}