From dda1b2a1274f8b4cd793b1079fb3ae0b3a77d9d2 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sat, 17 Mar 2018 15:14:14 +0100 Subject: [PATCH] gluon-client-bridge: check AP SSID length to be in range of 1-32 characters --- package/gluon-client-bridge/check_site.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-client-bridge/check_site.lua b/package/gluon-client-bridge/check_site.lua index bc812b3f..ea733a95 100644 --- a/package/gluon-client-bridge/check_site.lua +++ b/package/gluon-client-bridge/check_site.lua @@ -9,7 +9,7 @@ need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false) for _, config in ipairs({'wifi24', 'wifi5'}) do if need_table({config, 'ap'}, nil, false) then - need_string(in_domain({config, 'ap', 'ssid'})) + need_string_match(in_domain({config, 'ap', 'ssid'}), '^.' .. ('.?'):rep(31) .. '$') need_boolean({config, 'ap', 'disabled'}, false) end end