lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV Year 2000 problem with cookies in lynx 2.7.1


From: David J. MacKenzie
Subject: LYNX-DEV Year 2000 problem with cookies in lynx 2.7.1
Date: Thu, 16 Oct 1997 13:40:16 -0400 (EDT)

The apache source file mod_usertrack.c includes the comment:

/* Define this to allow post-2000 cookies. Cookies use two-digit dates,
 * so it might be dicey. (Netscape does it correctly, but others may not)
 */
#define MILLENIAL_COOKIES

I just checked, and lynx 2.7 as well as the current development
version of 2.7.1 treats a cookie with a year of, say, 02, as being
1902 instead of 2002.  LYUtils.c:LYmktime() does:

    } else if ((s - start) == 2) {
        now = time(NULL);
        LYstrncpy(temp, ((char *)ctime(&now) + 20), 2);
        strncat(temp, start, 2);
        temp[4] = '\0'; 

It should probably use localtime instead and manipulate the struct tm.
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]