diff options
Diffstat (limited to 'usr/local/www/services_wol.php')
-rwxr-xr-x | usr/local/www/services_wol.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php index f60a792..6494a07 100755 --- a/usr/local/www/services_wol.php +++ b/usr/local/www/services_wol.php @@ -95,7 +95,7 @@ if ($_POST || $_GET['mac']) { else { $bcip = gen_subnet_max($ipaddr, get_interface_subnet($if)); /* Execute wol command and check return code. */ - if(!mwexec("/usr/local/bin/wol -i {$bcip} {$mac}")) + if(!mwexec("/usr/local/bin/wol -i {$bcip} " . escapeshellarg($mac))) $savemsg .= sprintf(gettext("Sent magic packet to %s."),$mac); else $savemsg .= sprintf(gettext('Please check the %1$ssystem log%2$s, the wol command for %3$s did not complete successfully%4$s'),'<a href="/diag_logs.php">', '</a>', $mac, ".<br>"); |