summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-09-10 15:32:12 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-09-10 15:32:12 -0400
commitc050ecdaea3efbc865503742a3ea77e3cc32b241 (patch)
tree9b0f668c65db98638d486d3b2693d32f26d34ce4
parent7b57d9bd91211ce0d2d1f7f1fa30189ef5e97c2d (diff)
downloadpfsense-c050ecdaea3efbc865503742a3ea77e3cc32b241.zip
pfsense-c050ecdaea3efbc865503742a3ea77e3cc32b241.tar.gz
Ensure count is valid. Submitted-by: Josh Little
-rwxr-xr-xusr/local/www/diag_ping.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php
index e6da1db..2be8c6e 100755
--- a/usr/local/www/diag_ping.php
+++ b/usr/local/www/diag_ping.php
@@ -52,6 +52,8 @@ if ($_POST) {
$host = $_POST['host'];
$interface = $_POST['interface'];
$count = $_POST['count'];
+ if (!preg_match('/^[0-9]{1}$/', $count) )
+ $count = DEFAULT_COUNT;
}
}
if (!isset($do_ping)) {
OpenPOWER on IntegriCloud