lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev 2.8.1pre.9 cookie reversal fix (possible patch)


From: brian j. pardy
Subject: lynx-dev 2.8.1pre.9 cookie reversal fix (possible patch)
Date: Sat, 10 Oct 1998 18:06:10 -0700

This patch seems to fix the problem with Lynx reversing the order of
cookies loaded from the stored cookies file.

Laura, and anyone else having this problem, could you try this patch out
and see if it does anything for you?

(against pre.9)


diff -cr 2.8.1pre.9/src/LYCookie.c 2.8.1pre.9.bri/src/LYCookie.c
*** 2.8.1pre.9/src/LYCookie.c   Mon Sep 28 02:15:11 1998
--- 2.8.1pre.9.bri/src/LYCookie.c       Sat Oct 10 18:02:43 1998
***************
*** 501,506 ****
--- 501,519 ----
       *        if confirmed or 'allow' is set to always. - FM
       */
      } else if (HTConfirmCookie(de, hostname, co->name, co->value)) {
+ 
+ #ifdef EXP_PERSISTENT_COOKIES
+         /*
+          * If the cookie domain came from persistent cookie file,
+          * we want to add new cookies to the end of the cookie list
+          * to maintain their order for servers that need cookies in 
+          * a particular order. This is a hack.
+          */
+         if(de->bv = FROM_FILE) {
+             pos = total_cookies;
+         }
+ #endif /* EXP_PERSISTENT_COOKIES */
+ 
        HTList_insertObjectAt(cookie_list, co, pos);
        total_cookies++;
      } else {

-- 
May the fleas of a thousand camels infest your armpits.
In Oz, never say "krizzle kroo" to a Woozy.

reply via email to

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