diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-04 18:04:20 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-04 18:06:58 +0100 |
commit | 71d370a964f3ec4970bcded9198ff559316902ff (patch) | |
tree | a79916b285fe04947e2e819c6870011301cd92af /modules/luci-base | |
parent | ee360669474ddc7d94dd2853b2411da929fb5593 (diff) |
luci-base: ui.js: ensure that select choice labels are properly escaped
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index faf05211db..31f89339c4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -312,7 +312,7 @@ var UISelect = UIElement.extend({ frameEl.lastChild.appendChild(E('option', { 'value': '', 'selected': (this.values.length == 0 || this.values[0] == '') ? '' : null - }, this.choices[''] || this.options.placeholder || _('-- Please choose --'))); + }, [ this.choices[''] || this.options.placeholder || _('-- Please choose --') ])); for (var i = 0; i < keys.length; i++) { if (keys[i] == null || keys[i] == '') @@ -321,7 +321,7 @@ var UISelect = UIElement.extend({ frameEl.lastChild.appendChild(E('option', { 'value': keys[i], 'selected': (this.values.indexOf(keys[i]) > -1) ? '' : null - }, this.choices[keys[i]] || keys[i])); + }, [ this.choices[keys[i]] || keys[i] ])); } } else { |