From 2b99473f2cd3321ecf96e92606c3263c2941eb7b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 7 Nov 2020 00:40:31 +0100 Subject: luci-base: tools.widget.NetworkSelect: disallow invalid network names Fixes: #4523, #4573 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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 1de8a08bc..b97696c1b 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -393,6 +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', validate: L.bind(this.validate, this, section_id), create: !this.nocreate, create_markup: '' + -- cgit v1.2.3