From 408a58f6f6b0d419bc6b81eb93f32c701e19118a Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sat, 12 Feb 2011 11:09:13 +0000 Subject: web: Improve hostname validation --- modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/admin-full/luasrc/model') diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua index dcd2fb018..a0b8844f3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua @@ -75,7 +75,7 @@ s:taboption("general", DummyValue, "_uptime", translate("Uptime")).value = luci.tools.webadmin.date_format(tonumber(uptime)) hn = s:taboption("general", Value, "hostname", translate("Hostname")) - +hn.datatype = "hostname" function hn.write(self, section, value) Value.write(self, section, value) luci.sys.hostname(value) -- cgit v1.2.3