diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-09-10 15:32:12 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-09-10 15:32:12 -0400 |
commit | c050ecdaea3efbc865503742a3ea77e3cc32b241 (patch) | |
tree | 9b0f668c65db98638d486d3b2693d32f26d34ce4 | |
parent | 7b57d9bd91211ce0d2d1f7f1fa30189ef5e97c2d (diff) | |
download | pfsense-c050ecdaea3efbc865503742a3ea77e3cc32b241.zip pfsense-c050ecdaea3efbc865503742a3ea77e3cc32b241.tar.gz |
Ensure count is valid. Submitted-by: Josh Little
-rwxr-xr-x | usr/local/www/diag_ping.php | 2 |
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)) { |