Skip to content

Commit

Permalink
Merge pull request #493 from pwntester/patch-1
Browse files Browse the repository at this point in the history
Prevent arbitrary EL expression evaluation
  • Loading branch information
jmrozanec committed Oct 30, 2021
2 parents 6f91560 + d7c6e3c commit d670750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cronutils/validation/CronValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public boolean isValid(String value, ConstraintValidatorContext context) {
return true;
} catch (IllegalArgumentException e) {
context.disableDefaultConstraintViolation();
context.buildConstraintViolationWithTemplate(e.getMessage()).addConstraintViolation();
context.buildConstraintViolationWithTemplate("Error parsing the Cron expression").addConstraintViolation();
return false;
}
}
Expand Down

0 comments on commit d670750

Please sign in to comment.