[TYPO3-core] RFC #16317: Bug: Valid values generated from cron command does not contain integers only

Marcus Krause marcus#exp2010 at t3sec.info
Tue Nov 9 19:32:48 CET 2010


Hi!


This is a SVN patch request.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=16317

Branches:
4-3, 4-4, trunk


Problem:
The scheduler's cron command class generates potential valid values for
each cron part. They are supposed to be integers. However, this is not
the case for the year part in which the lower limit is of type string
due to missing intval.


Solution:
Add missing intval for year part of valid_values.


Note:
attached patches are made against trunk
the added unit test is supposed to get committed to 4-4 and above
(as tests are not included in 4-3)


Marcus.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16317.diff
Type: text/x-diff
Size: 626 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101109/f9dd8764/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16317-test.diff
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101109/f9dd8764/attachment-0001.diff>


More information about the TYPO3-team-core mailing list