mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Limit preg_split to 2 parts
This commit is contained in:
parent
2dcdbbd34e
commit
65c1e58f77
@ -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