mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ensure count is valid. Submitted-by: Josh Little
This commit is contained in:
parent
68f291ffe2
commit
61ba386b8b
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user