From 4e6b68c612c98d3a8bbca5d991850ae70d42cbf4 Mon Sep 17 00:00:00 2001 From: Steve Lewis AB7PA Date: Thu, 30 Jun 2022 07:58:43 -0700 Subject: [PATCH] allow zero length wan wifi client passphrase --- files/www/cgi-bin/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index dfc51c14..86b53c5e 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -682,7 +682,7 @@ if parms.button_save then end end if wifi3_enable == "1" then - if #wifi3_key < 8 or #wifi3_key > 64 then + if #wifi3_key ~= 0 and (#wifi3_key < 8 or #wifi3_key > 64) then err("WAN Wifi Client Password must be between 8 and 64 characters") end if wifi3_key:match("'") or wifi3_ssid:match("'") then