[Top][All Lists]

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

lynx-dev Re: patch for cookies with null value

From: brian j. pardy
Subject: lynx-dev Re: patch for cookies with null value
Date: Sun, 8 Nov 1998 19:01:29 -0800

brian j. pardy wrote:
> It looks like this patch fixes the problem that Larry was having with
> in the middle of last month. I'm not sure exactly
> why Fote wanted to ignore cookies with an empty value, but it looks like
> if we accept them things work properly.

Looks like we'll also need this patch. Without it, Lynx will save cookies
with emptied out values, causing weird behavior if they are written to
disk and re-read.

diff -cr lynx2-8-1/src/LYCookie.c
*** lynx2-8-1/src/LYCookie.c    Fri Nov  6 06:29:41 1998
---  Sun Nov  8 18:59:48 1998
*** 495,500 ****
--- 495,508 ----
        co = NULL;
+      * Don't add the cookie if the value is NULL. - BJP
+      */
+     } else if (co->value[0] == '\0') {
+         CTRACE(tfp, "store_cookie: Value is NULL! Not storing cookie.\n");
+         freeCookie(co);
+         co = NULL;
+     /*
       *        If it's a replacement for a cookie that had not expired,
       *        and never allow has not been set, add it again without
       *        confirmation. - FM

Change is the essential process of all existence.
                -- Spock, "Let That Be Your Last Battlefield", stardate 5730.2

reply via email to

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