On Tue, Dec 15, 2009 at 6:12 PM, Lyle <webmas...@cosmicperl.com> wrote:
> Michael G Schwern wrote: > >> Clever watchdogs can prevent this from bringing down a server, but I think >> we can all agree that a date library should not be the source of DOS >> attacks. >> > > Maybe a warning of this in the POD would be enough? Or a more active built > in restriction on future dates that users of DataTime must manually > override... > Would a global be too ugly for a short-term fix? $DateTime::MaxFutureYears = 20; # no dates more than 20 years from current year. -- Bill Moseley mose...@hank.org