diff options
Diffstat (limited to 'config/arping')
-rw-r--r-- | config/arping/arping.inc | 6 | ||||
-rw-r--r-- | config/arping/arping.xml | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/config/arping/arping.inc b/config/arping/arping.inc index be21a790..0054adf0 100644 --- a/config/arping/arping.inc +++ b/config/arping/arping.inc @@ -35,7 +35,11 @@ function arping_package_reinstall() { } function arping_package_php_command() { - system("arping -c3 " . $_POST['hostip']); + require_once("util.inc"); + if (is_ipaddr($_POST['hostip']) || is_hostname($_POST['hostip']) || is_macaddr($_POST['hostip'])) + system("arping -c3 " . escapeshellarg($_POST['hostip'])); + else + echo "Invalid input. Supplied address must be a valid IP or MAC address."; exit; } diff --git a/config/arping/arping.xml b/config/arping/arping.xml index 01651e83..02531b76 100644 --- a/config/arping/arping.xml +++ b/config/arping/arping.xml @@ -68,7 +68,7 @@ <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/arping/arping.inc</item> + <item>https://packages.pfsense.org/packages/config/arping/arping.inc</item> </additional_files_needed> <fields> <field> |