Fix regular expression to allow 10 for ping count.

This commit is contained in:
Erik Fonnesbeck 2010-09-10 14:35:39 -06:00
parent 61ba386b8b
commit 3a134b5369

View File

@ -64,8 +64,8 @@ if ($_POST || $_REQUEST['host']) {
$host = $_REQUEST['host'];
$interface = $_REQUEST['interface'];
$count = $_POST['count'];
if (!preg_match('/^[0-9]{1}$/', $count) )
$count = DEFAULT_COUNT;
if (preg_match('/[^0-9]/', $count) )
$count = DEFAULT_COUNT;
}
}
if (!isset($do_ping)) {