From 98a9d07d8998fae912ff43ee4d45ed8ad09aa04c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 23 Mar 2020 22:20:50 +0100 Subject: luci-mod-network: dhcp.js: properly validate hostname values Signed-off-by: Jo-Philipp Wich --- .../luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-network/htdocs') 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); -- cgit v1.2.3