git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2b99473
)
luci-base: tools.widgets.NetworkSelect: properly validate multi select
author
Jo-Philipp Wich
<redacted>
Fri, 6 Nov 2020 23:46:30 +0000
(
00:46
+0100)
committer
Jo-Philipp Wich
<redacted>
Fri, 6 Nov 2020 23:46:30 +0000
(
00:46
+0100)
Fixes: 2b99473f2 ("luci-base: tools.widget.NetworkSelect: disallow invalid network names")
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
index b97696c1b8e61cbe623b72a57aeb1ceed5c280c1..3f2b7b9ffcfafbcf888d29ab56eabe039628516c 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@
-393,7
+393,7
@@
var CBINetworkSelect = form.ListValue.extend({
select_placeholder: E('em', _('unspecified')),
display_items: this.display_size || this.size || 3,
dropdown_items: this.dropdown_size || this.size || 5,
- datatype: 'uciname',
+ datatype:
this.multiple ? 'list(uciname)' :
'uciname',
validate: L.bind(this.validate, this, section_id),
create: !this.nocreate,
create_markup: '' +
git clone https://git.99rst.org/PROJECT