mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix regular expression to allow 10 for ping count.
This commit is contained in:
parent
61ba386b8b
commit
3a134b5369
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user