From: Jo-Philipp Wich Date: Thu, 26 Nov 2015 11:30:53 +0000 (+0100) Subject: luci-mod-admin-full: limit SSID to 32 characters (#558) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce04adb38392c07420c30e67b1bb010ee1e0145f;p=oweals%2Fluci.git luci-mod-admin-full: limit SSID to 32 characters (#558) Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua index 9a2bd5d20..b91c29b08 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -361,7 +361,8 @@ s:tab("encryption", translate("Wireless Security")) s:tab("macfilter", translate("MAC-Filter")) s:tab("advanced", translate("Advanced Settings")) -s:taboption("general", Value, "ssid", translate("ESSID")) +ssid = s:taboption("general", Value, "ssid", translate("ESSID")) +ssid.datatype = "maxlength(32)" mode = s:taboption("general", ListValue, "mode", translate("Mode")) mode.override_values = true