Closed ticky closed 5 years ago
https://crontab.guru/#*_0-24_*_*_* says 24
is not in the allowed values.
man 5 crontab
says:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
I should probably simply reject. But accepting 24, is lenient, à la Postel.
Already accepting 24
on its own, https://github.com/floraison/fugit/blob/12a2faabc1d5f66fc8b4c8c3795d6b32c154ac2d/spec/cron_spec.rb#L50 so have to be lenient.
Released as part of fugit 1.3.2.
https://rubygems.org/gems/fugit/versions/1.3.2
Please tell me if there is anything wrong.
Many thanks with this issue report.
Thanks for the quick fix! Looking good 😄
Issue description
Values outside 0-23 in an hour range cause an infinite loop error.
How to reproduce
Expected behaviour
The “24” being out of range should either result in a parsing error or being treated as 0.
Context
Please replace the content of this section with the output of the following commands:
Additional context
Encountered via in-the-wild user input!