aboutsummaryrefslogtreecommitdiffstats
path: root/config/iperfserver.xml
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-28 20:28:22 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-28 20:28:22 -0600
commitb2672b93a0917d7efea54e6692458e71a091dbd3 (patch)
tree6f4b11ecd74c328b4bb25ebf0533963a65f3cf93 /config/iperfserver.xml
parent6c4cfcc52d41b5ea5b5411c3db8d2ec88e511bae (diff)
downloadpfsense-packages-b2672b93a0917d7efea54e6692458e71a091dbd3.tar.gz
pfsense-packages-b2672b93a0917d7efea54e6692458e71a091dbd3.tar.bz2
pfsense-packages-b2672b93a0917d7efea54e6692458e71a091dbd3.zip
touch up arpwatch, add escaping to iperf
Diffstat (limited to 'config/iperfserver.xml')
-rw-r--r--config/iperfserver.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/iperfserver.xml b/config/iperfserver.xml
index 493c41c8..f0dc074a 100644
--- a/config/iperfserver.xml
+++ b/config/iperfserver.xml
@@ -130,10 +130,10 @@
$iperf_options = "";
if($_POST['protocol'] == "udp") $iperf_options .= " -u";
if($_POST['format'] == "bytes") $iperf_options .= " -f A";
- if($_POST['interval'] != "") $iperf_options .= " -i {$_POST['interval']}";
- if($_POST['length'] != "") $iperf_options .= " -l {$_POST['length']}";
- if($_POST['window'] != "") $iperf_options .= " -w {$_POST['window']}";
- if($_POST['port'] != "") $iperf_options .= " -p {$_POST['port']}";
+ if($_POST['interval'] != "") $iperf_options .= " -i " . escapeshellarg($_POST['interval']);
+ if($_POST['length'] != "") $iperf_options .= " -l " . escapeshellarg($_POST['length']);
+ if($_POST['window'] != "") $iperf_options .= " -w " . escapeshellarg($_POST['window']);
+ if($_POST['port'] != "") $iperf_options .= " -p " . escapeshellarg($_POST['port']);
$iperf_options .= " -s";
mwexec_bg("/usr/local/bin/iperf" . $iperf_options);
</custom_add_php_command>