mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Improve detection of escaped hex bytes in ssid name
This commit is contained in:
parent
7344c323ee
commit
45bd02ecb7
@ -69,7 +69,7 @@ function DisplayWPAConfig()
|
|||||||
}
|
}
|
||||||
fwrite($wpa_file, $line.PHP_EOL);
|
fwrite($wpa_file, $line.PHP_EOL);
|
||||||
} else {
|
} else {
|
||||||
if ( strpos($ssid, "\x") !== false && strpos($line, "ssid=\"") !== false ) {
|
if ( preg_match('/\\\\x[0-9A-Fa-f]{2}/',$ssid) && strpos($line, "ssid=\"") !== false ) {
|
||||||
fwrite($wpa_file, "\tssid=P\"".$ssid."\"".PHP_EOL);
|
fwrite($wpa_file, "\tssid=P\"".$ssid."\"".PHP_EOL);
|
||||||
} else {
|
} else {
|
||||||
fwrite($wpa_file, $line.PHP_EOL);
|
fwrite($wpa_file, $line.PHP_EOL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user