From: Paul Donald Date: Wed, 3 Dec 2025 15:54:29 +0000 (+0100) Subject: luci-app-firewall: use more strict validation for zone names X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=97733541e5f342433e926a61a705574cc0ed5553;p=project%2Fluci.git luci-app-firewall: use more strict validation for zone names they shall not begin with a digit. Signed-off-by: Paul Donald --- 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);