diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-03-22 09:52:55 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-04 23:21:53 +0200 |
commit | 94ea9077076d98374a331131fb7c9fc57df370a6 (patch) | |
tree | c840022c65eeaa240961100d1ee4d945a31db4a9 /modules/luci-mod-admin-full/luasrc | |
parent | 70ffbe65a0d9e8a77c9d3bafc34ddd260490c541 (diff) |
luci-mod-admin-full: use strict hostname validation for dhcp hosts
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 66d9942a11..b7b73d78d0 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) |