From 2108d5b79f060c787ca76d90e56ae236a582f7e0 Mon Sep 17 00:00:00 2001 From: Robert Duncan <46305753+RobertDuncan42@users.noreply.github.com> Date: Tue, 22 Sep 2020 11:25:24 -0400 Subject: [PATCH] Update dashboard.php --- includes/dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index 60c3aa83..c4c0ded5 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -90,7 +90,7 @@ function DisplayDashboard(&$extraFooterScripts) define('SSIDMAXLEN', 32); // Warning iw comes with: "Do NOT screenscrape this tool, we don't consider its output stable." exec('iw dev ' .$_SESSION['wifi_client_interface']. ' link ', $stdoutIw); - $stdoutIwAllLinesGlued = implode(' ', $stdoutIw); + $stdoutIwAllLinesGlued = implode('+', $stdoutIw); // Break lines with character illegal in SSID and MAC addr $stdoutIwWRepSpaces = preg_replace('/\s\s+/', ' ', $stdoutIwAllLinesGlued); preg_match('/Connected to (([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2}))/', $stdoutIwWRepSpaces, $matchesBSSID) || $matchesBSSID[1] = ''; @@ -102,7 +102,7 @@ function DisplayDashboard(&$extraFooterScripts) $wlanHasLink = true; } - if (!preg_match('/SSID: ([^ ]{1,'.SSIDMAXLEN.'})/', $stdoutIwWRepSpaces, $matchesSSID)) { + if (!preg_match('/SSID: ([^+]{1,'.SSIDMAXLEN.'})/', $stdoutIwWRepSpaces, $matchesSSID)) { $wlanHasLink = false; $matchesSSID[1] = 'None'; }