diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-22 17:18:15 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-26 10:22:05 +0200 |
commit | a6c538a7767fbf62aeac95e575021b7b345b1912 (patch) | |
tree | ecc30d24df8345e9655088e9a03be455bd751505 /modules/luci-base/htdocs | |
parent | 86fcf916334545aeb28f76ef98034df5111e8163 (diff) |
luci-base: ui.js: HTML escape custom dropdown values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index bff717eb8..e47e11b1c 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -879,7 +879,7 @@ var UIDropdown = UIElement.extend({ else markup = '<li data-value="{{value}}">{{value}}</li>'; - new_item = E(markup.replace(/{{value}}/g, item)); + new_item = E(markup.replace(/{{value}}/g, '%h'.format(item))); if (sbox.options.multiple) { sbox.transformItem(sb, new_item); |