From a4d5cc1af6e5b4e1d378ae0b4d870465a76877e2 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 31 May 2021 10:49:02 +0100 Subject: [PATCH] Remove extended ASCII ISO Latin-1 printable chars from filter --- includes/wifi_functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wifi_functions.php b/includes/wifi_functions.php index cbd4fc72..411c1cff 100755 --- a/includes/wifi_functions.php +++ b/includes/wifi_functions.php @@ -78,8 +78,8 @@ function nearbyWifiStations(&$networks, $cached = true) continue; } - // filter SSID string: anything invisible in 7bit ASCII or quotes -> ignore network - if (preg_match('[\x00-\x1f\x7f-\xff\'\`\´\"]', $ssid)) { + // filter SSID string: unprintable 7bit ASCII control codes, delete or quotes -> ignore network + if (preg_match('[\x00-\x1f\x7f\'\`\´\"]', $ssid)) { continue; }