1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

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

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