diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-02-19 00:22:38 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-02-19 00:23:27 +0100 |
commit | c8cddc35302380882bab910679f717d65f715029 (patch) | |
tree | 4baabb50989594beda0bd26789f72b683248f1f9 /modules/luci-mod-network/htdocs/luci-static | |
parent | 3980c192cda6985c2e2d2608e74677cf236005db (diff) |
luci-mod-network: dhcp.js: relax CNAME domain validation
Relax the CNAME domain validation to allow wildcard names.
Fixes: #6801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 2006657f0f..c723a45054 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -883,7 +883,7 @@ return view.extend({ so = ss.option(form.Value, 'cname', _('Domain')); so.rmempty = false; - so.datatype = 'hostname'; + so.validate = validateHostname; so.placeholder = 'www.example.com.'; so = ss.option(form.Value, 'target', _('Target')); |