mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
parent
619f9e511f
commit
5baf07c898
@ -88,20 +88,8 @@ if (isset($_POST['save'])) {
|
||||
}
|
||||
|
||||
if ($_POST['frequency'] === 'cron') {
|
||||
if(!preg_match('/^[0-9\*\/]+$/', $_POST['hours'])) {
|
||||
$input_errors[] = gettext("Schedule hours may only contain numbers '*' or '/'");
|
||||
}
|
||||
|
||||
if(!preg_match('/^[0-9\*\/]+$/', $_POST['day'])) {
|
||||
$input_errors[] = gettext("Schedule days may only contain numbers '*' or '/'");
|
||||
}
|
||||
|
||||
if(!preg_match('/^[0-9\*\/]+$/', $_POST['month'])) {
|
||||
$input_errors[] = gettext("Schedule month may only contain numbers '*' or '/'");
|
||||
}
|
||||
|
||||
if(!preg_match('/^[0-9\*\/]+$/', $_POST['dow'])) {
|
||||
$input_errors[] = gettext("Schedule day of week may only contain numbers '*' or '/'");
|
||||
if (!preg_match('/^[0-9\*\/\-\,]+$/', $_POST['hours'] . $_POST['day'] . $_POST['month'] . $_POST['dow'])) {
|
||||
$input_errors[] = gettext("Schedule values may only contain 0-9 - , / *");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user