mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Add validation check for time period for Dpinger (#3190)
This commit is contained in:
parent
b20f71b19e
commit
7960f2ab77
@ -287,6 +287,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$input_errors[] = gettext("The time period needs to be a numeric value.");
|
||||
} elseif ($pconfig['time_period'] < 1) {
|
||||
$input_errors[] = gettext("The time period needs to be positive.");
|
||||
} elseif ($pconfig['time_period'] < (2.1*$pconfig['interval'])) {
|
||||
$input_errors[] = gettext("The time period needs at least 2.1 times that of the probe interval.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user