From f0db12664d97b8123a6765d2072b4cb8e58f9657 Mon Sep 17 00:00:00 2001 From: Taikuh Date: Wed, 25 Mar 2020 00:21:59 +0800 Subject: [PATCH] add quotes to $MACPattern --- templates/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/dashboard.php b/templates/dashboard.php index 74537950..84e2d788 100755 --- a/templates/dashboard.php +++ b/templates/dashboard.php @@ -5,7 +5,7 @@ if ($arrHostapdConf['WifiAPEnable'] == 1) { } else { $client_iface = RASPI_WIFI_CLIENT_INTERFACE; } -$MACPattern = '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}'; +$MACPattern = '"([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}"'; if ($arrHostapdConf['BridgedEnable'] == 1) { $moreLink = "index.php?page=hostapd_conf"; exec('arp -i '.$client_iface.' -a | grep -E $(iw dev '.$client_iface.' station dump | grep -oE '.$MACPattern.' | paste -sd "|") | tr -d "()" | awk -F" " \'{print $7 " " $4 " " $2 " " $1}\'', $clients);