From 58fc7028055a84898eb63a8995abc71105b53f6e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Nov 2018 11:19:17 +0100 Subject: luci-base: validate DHCP clientid as hexstring Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/luci-base/luasrc/model/cbi') diff --git a/modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua b/modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua index dc702e4a95..6e04465ac9 100644 --- a/modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua +++ b/modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua @@ -53,6 +53,7 @@ metric.datatype = "uinteger" clientid = section:taboption("advanced", Value, "clientid", translate("Client ID to send when requesting DHCP")) +clientid.datatype = "hexstring" vendorclass = section:taboption("advanced", Value, "vendorid", -- cgit v1.2.3