From c0cfcfa117ae5ba04ac36f018c8d7177f13f34b9 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 5 Aug 2019 14:26:55 +0100 Subject: [PATCH] Bugfix, resolves #367 --- includes/hostapd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index b42f7147..6cbfa690 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -522,7 +522,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) // someone is up to something if they fail. Fail silently. if (!(array_key_exists($_POST['wpa'], $wpa_array) && array_key_exists($_POST['wpa_pairwise'], $enc_types) && - in_array($_POST['hw_mode'], $modes))) { + array_key_exists($_POST['hw_mode'], $modes))) { error_log("Attempting to set hostapd config with wpa='".$_POST['wpa']."', wpa_pairwise='".$_POST['wpa_pairwise']."' and hw_mode='".$_POST['hw_mode']."'"); // FIXME: log injection return false; }