# HG changeset patch # User corvid # Date 1243201979 0 # Node ID 65c7e33e4466b0755629698d28826878fac36cb4 # Parent 958903cf2733bfb83d85c06e9a88c3d7f3d9bdd5 allow year 1970 in cookies diff -r 958903cf2733 -r 65c7e33e4466 dpi/cookies.c --- a/dpi/cookies.c Sun May 24 20:48:50 2009 +0200 +++ b/dpi/cookies.c Sun May 24 21:52:59 2009 +0000 @@ -539,7 +539,7 @@ } /* Error checks --this may be overkill */ - if (!(day > 0 && day < 32 && month > 0 && month < 13 && year > 1970 && + if (!(day > 0 && day < 32 && month > 0 && month < 13 && year >= 1970 && hour >= 0 && hour < 24 && minutes >= 0 && minutes < 60 && seconds >= 0 && seconds < 60)) { MSG("%s%s\n", E_msg, expires);