luci-mod-admin-full: limit SSID to 32 characters (#558)
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 26 Nov 2015 11:30:53 +0000 (12:30 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 26 Nov 2015 11:30:53 +0000 (12:30 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 9a2bd5d2011ae3b5c4567df3e0d31a957747389f..b91c29b0884305705ba6c719454caad9df67036d 100644 (file)
@@ -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("<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))
+ssid = s:taboption("general", Value, "ssid", translate("<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>"))
+ssid.datatype = "maxlength(32)"
 
 mode = s:taboption("general", ListValue, "mode", translate("Mode"))
 mode.override_values = true