From d4010bd866034060112327785ecd9aed07c2d051 Mon Sep 17 00:00:00 2001 From: arduino-man <5546597+arduino-man@users.noreply.github.com> Date: Tue, 26 Dec 2017 11:55:30 -0700 Subject: [PATCH] Patch dashboard.php to take dots in ESSID's Patched dashboard.php so that the dashboard can display ESSID's that have dots in their names such as "kayton-2.4G". This was done by modifying the regex on line 38. --- includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index 1f66542a..f154d663 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -35,7 +35,7 @@ function DisplayDashboard(){ $strRxBytes = $result[1]; preg_match( '/TX Bytes:(\d+ \(\d+.\d+ [K|M|G]iB\))/i',$strWlan0,$result ) || $result[1] = 'No Data'; $strTxBytes = $result[1]; - preg_match( '/ESSID:\"([a-zA-Z0-9\s]+)\"/i',$strWlan0,$result ) || $result[1] = 'Not connected'; + preg_match( '/ESSID:\"([a-zA-Z0-9\s].+)\"/i',$strWlan0,$result ) || $result[1] = 'Not connected'; $strSSID = str_replace( '"','',$result[1] ); preg_match( '/Access Point: ([0-9a-f:]+)/i',$strWlan0,$result ) || $result[1] = ''; $strBSSID = $result[1];