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
7b57d9bd91
commit
c050ecdaea
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user