Ensure count is valid. Submitted-by: Josh Little

This commit is contained in:
Scott Ullrich 2010-09-10 15:30:11 -04:00
parent 68f291ffe2
commit 61ba386b8b

View File

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