luci-base: amend ZoneSelect widget datatype
authorPaul Donald <redacted>
Mon, 12 Jan 2026 00:36:35 +0000 (01:36 +0100)
committerPaul Donald <redacted>
Mon, 12 Jan 2026 00:36:35 +0000 (01:36 +0100)
commit2a84e490e1b743a208365b542118b40874851e9e
treea6ae7c0181c31689a1536971fa40d1a877aa0b13
parent4de429664214f6615993952763b68ff5ac959606
luci-base: amend ZoneSelect widget datatype

mandate proper firewall compliant zone names. Use
validation ucifw4zonename instead of uciname. The former
does not permit leading digits which

Now we only permit "*" if flags .allowany and .nocreate are
set. This is when the widget is used to select pre-existing
zones and the zone 'any' ("*") is added as a .value.
Creating a zone named "*" shall not be allowed.

Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
git clone https://git.99rst.org/PROJECT