Skip to content
Unverified Commit ba98a2fd authored by Ansuel Smith's avatar Ansuel Smith
Browse files

luci-mod-network: fix logic bug in parse enc for network join



In handleJoinConfirm while is_wep is a boolean, is_psk and is_sae are an array. In the following if check, all 3 are used as boolean but Js treat empty array as positive values and this cause the ui to wrongly set the encryption to sae. fix this by checking if the array actually contains data.

Fixes: #4524
Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
parent ae47a510
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment