mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Escape shell argument correctly.
This commit is contained in:
parent
31eb6cb77d
commit
2f306bdbc6
@ -43,8 +43,11 @@ include("head.inc");
|
||||
<?php include("fbegin.inc"); ?>
|
||||
<p class="pgtitle"><?=$pgtitle?></p>
|
||||
|
||||
echo "Scanning nodes... One moment please...";
|
||||
$scan_nodes = `/sbin/ifconfig {$_GET['interface']} scan`;
|
||||
$interface = escapeshellarg($_GET['interface']);
|
||||
|
||||
echo gettext("Scanning nodes... One moment please...");
|
||||
$scan_nodes = `/sbin/ifconfig {$interface} scan`;
|
||||
|
||||
echo "<P>Available nodes:<PRE>";
|
||||
echo $scan_nodes;
|
||||
echo "</PRE>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user