git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d02e2a1
)
luci-base: add a validation for fw4 zone names
author
Paul Donald
<redacted>
Wed, 3 Dec 2025 15:51:47 +0000
(16:51 +0100)
committer
Paul Donald
<redacted>
Wed, 3 Dec 2025 15:51:47 +0000
(16:51 +0100)
Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/validation.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/validation.js
b/modules/luci-base/htdocs/luci-static/resources/validation.js
index be4ad1c79f46395a0b7dc1dd93ad57d92762f32e..d3208c9b792dbfab9c8c6fb1cd4a539becb1c7f2 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/validation.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/validation.js
@@
-457,6
+457,10
@@
const ValidatorFactory = baseclass.extend({
return this.assert(this.value.match(/^[a-zA-Z0-9_]+$/), _('valid UCI identifier'));
},
+ ucifw4zonename() {
+ return this.assert(this.value.match(/^[a-zA-Z_][a-zA-Z0-9_]+$/), _('valid fw4 zone name UCI identifier'));
+ },
+
netdevname() {
const v = this.value;
git clone https://git.99rst.org/PROJECT