Remove extended ASCII ISO Latin-1 printable chars from filter

This commit is contained in:
billz 2021-05-31 10:49:02 +01:00
parent 2233636681
commit a4d5cc1af6
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}