Correct non-ASCII SSID read from wpa_supplicant

This commit is contained in:
zbchristian 2021-08-18 20:37:45 +02:00 committed by billz
parent d8626bd790
commit 74b6a15a75

View File

@ -20,6 +20,7 @@ function knownWifiStations(&$networks)
switch (strtolower($lineArr[0])) { switch (strtolower($lineArr[0])) {
case 'ssid': case 'ssid':
$ssid = trim($lineArr[1], '"'); $ssid = trim($lineArr[1], '"');
$ssid = str_replace('P"','',$ssid);
$network['ssid'] = $ssid; $network['ssid'] = $ssid;
break; break;
case 'psk': case 'psk':