From ce7032c99a7775902f5dd11ee93006dac1ff9843 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 24 Nov 2025 09:58:57 +0100 Subject: [PATCH] Use $wifi::SECURITY_OPEN constant --- includes/configure_client.php | 2 +- templates/wifi_stations/network.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/configure_client.php b/includes/configure_client.php index a9125806..56bd896a 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -50,7 +50,7 @@ function DisplayWPAConfig() } elseif (preg_match('/update(\d+)/', $post, $post_match)) { // NB, multiple protocols are separated with a forward slash ('/') $tmp_networks[$_POST['ssid' . $post_match[1]]] = array( - 'protocol' => ( $_POST['protocol' . $post_match[1]] === 'Open' ? 'Open' : 'WPA' ), + 'protocol' => ( $_POST['protocol' . $post_match[1]] === $wifi::SECURITY_OPEN ? $wifi::SECURITY_OPEN : 'WPA' ), 'passphrase' => $_POST['passphrase' . $post_match[1]], 'configured' => true ); diff --git a/templates/wifi_stations/network.php b/templates/wifi_stations/network.php index 26685647..322bdf45 100644 --- a/templates/wifi_stations/network.php +++ b/templates/wifi_stations/network.php @@ -10,7 +10,7 @@ $wifi = new WiFiManager(); -
+
@@ -57,7 +57,7 @@ $wifi = new WiFiManager();
- +