From cb7f9d2ed3ec65ba399cb7d47a455bbfb3383a9d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 10 Oct 2018 08:30:13 +0200 Subject: [PATCH] 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 --- modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm b/modules/luci-base/luasrc/view/cbi/firewall_zonelist.htm index 3a108020b..c5addc0dd 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 %> -- 2.25.1