diff --git a/src/app/notification/controllers/NotificationScheduleController.php b/src/app/notification/controllers/NotificationScheduleController.php index 69189e0d3960415953348eba1bc702be31f7f972..fc3c40c8239e99543ef2e0a42b527b1a5c2bff4a 100755 --- a/src/app/notification/controllers/NotificationScheduleController.php +++ b/src/app/notification/controllers/NotificationScheduleController.php @@ -53,7 +53,8 @@ class NotificationScheduleController if (($key == 'cmd' || $key == 'state') && !Validator::notEmpty()->validate($value)) { $errors[] = $key.' is empty'; } - if ($key != 'cmd' && $key != 'state' && $key != 'description' && !Validator::intVal()->validate($value) && $value != '*') { + + if ($key != 'cmd' && $key != 'state' && $key != 'description' && !preg_match('#^[0-9\/*][0-9]?[,\/-]?([0-9]?){2}#', $value) ) { $errors[] = 'wrong format for '.$key; } }