Skip to content

Commit

Permalink
[JENKINS-19688] Fixed cron time validation. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen-A-Fuerbacher committed Jun 8, 2018
1 parent 4c848d0 commit fbfaaec
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -149,7 +149,7 @@ public boolean configure(StaplerRequest req, JSONObject json)
public FormValidation doCheckCronTime(@QueryParameter String value)
throws ANTLRException, NullPointerException {
try {
new CronTab(value);
new CronTab(value.trim());
return FormValidation.ok();
} catch (ANTLRException e) {
return FormValidation.error(
Expand Down

0 comments on commit fbfaaec

Please sign in to comment.