Ensure count is valid. Submitted-by: Josh Little

This commit is contained in:
Scott Ullrich 2010-09-10 15:32:12 -04:00
parent 7b57d9bd91
commit c050ecdaea

View File

@ -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)) {