[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Persistent Cookies Question
From: |
brian j. pardy |
Subject: |
Re: lynx-dev Persistent Cookies Question |
Date: |
Sun, 8 Nov 1998 19:12:21 -0800 |
Jonathan Bobin wrote:
> I was just trying out the new feature of Lynx 2.8.1 and I tried to
> link ~/.lynx_cookies to ~/.netscape/cookies and see if I could just share
> the cookie files.
>
> However, since Netscape uses comments on the first three lines, Lynx gets
> confused and thinks those are actual cookies (removing the lines doesn't
> do anything since Netscape always puts the comments back in).
>
> Are there any plans to have Lynx interpret hash marks as comments instead
> of cookies?
This patch will take care of it.
It only checks for hashes at the beginning of a line, but I can't see them
popping up anywhere else unless they should be there.
Maybe this should go into 2.8.1 bugfixes? Definitely into 2.8.2.
diff -cr lynx2-8-1/src/LYCookie.c lynx2.8.2dev.1.bri/src/LYCookie.c
*** lynx2-8-1/src/LYCookie.c Fri Nov 6 06:29:41 1998
--- lynx2.8.2dev.1.bri/src/LYCookie.c Sun Nov 8 19:06:18 1998
***************
*** 1909,1915 ****
j = fgets(buf, sizeof(buf)-1, cookie_handle);
! if((j == NULL) || (buf[0] == '\0' || buf[0] == '\n')) {
continue;
}
--- 1909,1915 ----
j = fgets(buf, sizeof(buf)-1, cookie_handle);
! if((j == NULL) || (buf[0] == '\0' || buf[0] == '\n' || buf[0] == '#')) {
continue;
}
--
Your sister swims out to meet troop ships.
Fine day to throw a party. Throw him as far as you can.