diff options
-rwxr-xr-x | usr/local/www/diag_ping.php | 4 |
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)) { |