Skip to content
Permalink
Browse files

[JENKINS-19688] Fixed cron time validation.

  • Loading branch information...
Jochen-A-Fuerbacher committed Jun 8, 2018
1 parent 4c848d0 commit 57b682f8a099ea6db08de723374cc4e5818781d0
@@ -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(

0 comments on commit 57b682f

Please sign in to comment.
You can’t perform that action at this time.