From 94ea9077076d98374a331131fb7c9fc57df370a6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 22 Mar 2018 09:52:55 +0100 Subject: [PATCH] luci-mod-admin-full: use strict hostname validation for dhcp hosts Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 66d9942a1..b7b73d78d 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -274,7 +274,7 @@ s.anonymous = true s.template = "cbi/tblsection" name = s:option(Value, "name", translate("Hostname")) -name.datatype = "hostname" +name.datatype = "hostname('strict')" name.rmempty = true function name.write(self, section, value) -- 2.11.0