Quick fix for cookie EXPIRATION date processing problem

A month or so ago, I sent e-mail to the list to mention a bug relating to 
accepting the expiration date on cookies, in that LIBWWW couldn't accept the 
date that the Perl CGI library generates, nor did it meet Netscape's own spec 
(mentioned on the documentation on www.w3c.org) for dates.

I was finally forced to go fix the problem in my copy of the code today, but 
not having any background in CVS, and not having the time right this minute 
to learn, I thought I'd forward my fix to the list in hopes that someone else 
could be so kind as to verify it and check it in for me.

The problem was not in the time parsing itself, but only in a validation 
check to verify that all the fields in a struct tm struct were reasonably 
populated.  In order to correct the validation and make the code work 
correctly with Netscape's date format, I added the following lines to 
HTWWWStr.c:

409d408
< **            Wkd, 00-Mon-0000 00:00:00 GMT           (Netscape)
507,509d505
<
<     if (tm.tm_year > 1900) tm.tm_year -= 1900;
<
-- 
_______________________________________________________
James D. Brown, President, Shopswell, Inc.
Voice: 303-400-0480 - FAX: 303-400-7181
http://www.shopswell.com - jamesbrown@shopswell.com

Received on Thursday, 16 August 2001 04:43:44 UTC