summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ping.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-09-10 15:30:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-09-10 15:30:11 -0400
commit61ba386b8bb36ebcc93f1dd51914270f5904fef8 (patch)
treefb02e4e288be9c251f5f4d9b4f7e6578b36ce4e0 /usr/local/www/diag_ping.php
parent68f291ffe2e8e6e5d9470076365fd1127e7f3655 (diff)
downloadpfsense-61ba386b8bb36ebcc93f1dd51914270f5904fef8.zip
pfsense-61ba386b8bb36ebcc93f1dd51914270f5904fef8.tar.gz
Ensure count is valid. Submitted-by: Josh Little
Diffstat (limited to 'usr/local/www/diag_ping.php')
-rwxr-xr-xusr/local/www/diag_ping.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php
index 489cab6..4d00598 100755
--- a/usr/local/www/diag_ping.php
+++ b/usr/local/www/diag_ping.php
@@ -63,7 +63,9 @@ if ($_POST || $_REQUEST['host']) {
$do_ping = true;
$host = $_REQUEST['host'];
$interface = $_REQUEST['interface'];
- $count = $_REQUEST['count'];
+ $count = $_POST['count'];
+ if (!preg_match('/^[0-9]{1}$/', $count) )
+ $count = DEFAULT_COUNT;
}
}
if (!isset($do_ping)) {
OpenPOWER on IntegriCloud