mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Merge pull request #1300 from RaspAP/fix/passphrase
Fix: Limit preg_split to 2 parts
This commit is contained in:
commit
7862d37279
@ -16,7 +16,7 @@ function knownWifiStations(&$networks)
|
||||
$networks[$ssid] = $network;
|
||||
$network = null;
|
||||
$ssid = null;
|
||||
} elseif ($lineArr = preg_split('/\s*=\s*/', trim($line))) {
|
||||
} elseif ($lineArr = preg_split('/\s*=\s*/', trim($line), 2)) {
|
||||
switch (strtolower($lineArr[0])) {
|
||||
case 'ssid':
|
||||
$ssid = trim($lineArr[1], '"');
|
||||
|
Loading…
Reference in New Issue
Block a user