From 97733541e5f342433e926a61a705574cc0ed5553 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 3 Dec 2025 16:54:29 +0100 Subject: [PATCH] luci-app-firewall: use more strict validation for zone names they shall not begin with a digit. Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/firewall/zones.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js index a40f7f3733..dc9b094c32 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js @@ -130,7 +130,7 @@ return view.extend({ o.placeholder = _('Unnamed zone'); o.modalonly = true; o.rmempty = false; - o.datatype = L.hasSystemFeature('firewall4') ? 'uciname' : 'and(uciname,maxlength(11))'; + o.datatype = L.hasSystemFeature('firewall4') ? 'ucifw4zonename' : 'and(ucifw4zonename,maxlength(11))'; o.write = function(section_id, formvalue) { var cfgvalue = this.cfgvalue(section_id); -- 2.30.2