diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php index e6da1dbcb4..2be8c6ec0c 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)) {