mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
add quotes to $MACPattern
This commit is contained in:
parent
c2cff9d947
commit
f0db12664d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user