aboutsummaryrefslogtreecommitdiffstats
path: root/config/netio
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-12 15:21:47 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-12 15:21:47 +0100
commit6819b9709afc654eaf2bad09ceaf3ddf510ee019 (patch)
treea6db9611fb752f32096285376ced6795c860c6fc /config/netio
parent07093f7775a117b989fea168ae25d329b7c3738a (diff)
downloadpfsense-packages-6819b9709afc654eaf2bad09ceaf3ddf510ee019.tar.gz
pfsense-packages-6819b9709afc654eaf2bad09ceaf3ddf510ee019.tar.bz2
pfsense-packages-6819b9709afc654eaf2bad09ceaf3ddf510ee019.zip
Sanitize input and cleanups
Diffstat (limited to 'config/netio')
-rw-r--r--config/netio/netioserver.xml17
1 files changed, 6 insertions, 11 deletions
diff --git a/config/netio/netioserver.xml b/config/netio/netioserver.xml
index da73e902..93d53a6e 100644
--- a/config/netio/netioserver.xml
+++ b/config/netio/netioserver.xml
@@ -42,16 +42,11 @@
]]>
</copyright>
<name>netioserver</name>
- <version>1.27</version>
- <title>netio: Server</title>
+ <version>1.28</version>
+ <title>Diagnostics: netio: Server</title>
+ <savetext>Run netio server</savetext>
<preoutput>yes</preoutput>
<donotsave>true</donotsave>
- <menu>
- <name>netio</name>
- <tooltiptext>Run netio in client or server mode.</tooltiptext>
- <section>Diagnostics</section>
- <configfile>netio.xml</configfile>
- </menu>
<tabs>
<tab>
<text>Client</text>
@@ -74,9 +69,9 @@
<custom_add_php_command>
<![CDATA[
mwexec("/usr/bin/killall netio");
- if($_POST['port'] != "") {
- $netioserver_options = " -p {$_POST['port']}";
- system("/usr/local/bin/netio -s" . $netioserver_options);
+ if ($_POST['port'] != "") {
+ $port = escapeshellarg($_POST['port']);
+ system("/usr/local/bin/netio -s -p {$port}");
}
]]>
</custom_add_php_command>