diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-03-23 22:20:50 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-03-23 22:20:50 +0100 |
commit | 98a9d07d8998fae912ff43ee4d45ed8ad09aa04c (patch) | |
tree | dd9bddf6095690eeb0cd5514bce72d9ea6eb3d7f /modules/luci-mod-network/htdocs/luci-static/resources/view | |
parent | 6d17667524e4f8ed4f7aef2be7697db5825bb994 (diff) |
luci-mod-network: dhcp.js: properly validate hostname values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view')
-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 4e217a5416..81ea32d48c 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 @@ -395,7 +395,7 @@ return L.view.extend({ ss.anonymous = true; so = ss.option(form.Value, 'name', _('Hostname')); - so.datatype = 'hostname("strict")'; + so.validate = validateHostname; so.rmempty = true; so.write = function(section, value) { uci.set('dhcp', section, 'name', value); |