projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039ef1f
)
luci-base: ui.js: properly escape dynlist items for rendering
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 4 Dec 2019 15:08:40 +0000
(16:08 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 4 Dec 2019 15:09:52 +0000
(16:09 +0100)
Ref: https://forum.openwrt.org/t/luci-theme-openwrt-reports-error/49736
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
ee360669474ddc7d94dd2853b2411da929fb5593
)
modules/luci-base/htdocs/luci-static/resources/ui.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 2e360410dfb6720fc43f4a322b7573d75ac9aee5..f90de9e73a3b4a411dfbc228922a607483d7513a 100644
(file)
--- 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,