From ee360669474ddc7d94dd2853b2411da929fb5593 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 Dec 2019 16:08:40 +0100 Subject: [PATCH] luci-base: ui.js: properly escape dynlist items for rendering Ref: https://forum.openwrt.org/t/luci-theme-openwrt-reports-error/49736 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 1a9504b5d..faf05211d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -1300,7 +1300,7 @@ var UIDynamicList = UIElement.extend({ addItem: function(dl, value, text, flash) { var exists = false, new_item = E('div', { 'class': flash ? 'item flash' : 'item', 'tabindex': 0 }, [ - E('span', {}, text || value), + E('span', {}, [ text || value ]), E('input', { 'type': 'hidden', 'name': this.options.name, -- 2.25.1