From: Jo-Philipp Wich Date: Wed, 10 Oct 2018 06:30:13 +0000 (+0200) Subject: luci-base: validate name in firewall zone selector widget X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cb7f9d2ed3ec65ba399cb7d47a455bbfb3383a9d;p=openwrt-luci.git 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 --- diff --git a/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm b/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm index 3a108020b6..c5addc0ddb 100644 --- a/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm +++ b/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm @@ -98,7 +98,7 @@ <%:create%>: - + <% end %>