From: Jo-Philipp Wich Date: Fri, 6 Nov 2020 23:40:31 +0000 (+0100) Subject: luci-base: tools.widget.NetworkSelect: disallow invalid network names X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=69d668c46581f4a04c934e5de0542b0ff929bb60;p=project%2Fluci.git luci-base: tools.widget.NetworkSelect: disallow invalid network names Fixes: #4523, #4573 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 2b99473f2cd3321ecf96e92606c3263c2941eb7b) --- 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 7f724a17e4..367e1cb0f0 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: '' +