diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-07 00:40:31 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-07 00:41:56 +0100 |
commit | 2b99473f2cd3321ecf96e92606c3263c2941eb7b (patch) | |
tree | 483d7a8a1936e86db0a5bf2b3aebbfc151f01842 /modules | |
parent | 0c7a33523027e2241d4ff93dc987c97ce233912e (diff) |
luci-base: tools.widget.NetworkSelect: disallow invalid network names
Fixes: #4523, #4573
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 1de8a08bc3..b97696c1b8 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: '' + |