luci-base: validate name in firewall zone selector widget
authorJo-Philipp Wich <jo@mein.io>
Wed, 10 Oct 2018 06:30:13 +0000 (08:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 10 Oct 2018 06:30:13 +0000 (08:30 +0200)
commitcb7f9d2ed3ec65ba399cb7d47a455bbfb3383a9d
treea754c91016a5dfd34b7a8c41661e3f179701fb77
parent0b6ae96f2daab39547affb77fc41a6040a663a2f
luci-base: validate name in firewall zone selector widget

When creating a new zone through the firewall zone selector widget,
validate the given name before creating new items.

Depends on commit 0b6ae96f2 ("luci-base: cbi.js: recognize invalid
input in dropdown create field").

Fixes: #2211
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm