lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Cookie bug in lynx2.8.5dev.2


From: Thomas Dickey
Subject: Re: lynx-dev Cookie bug in lynx2.8.5dev.2
Date: Mon, 22 Oct 2001 17:48:32 -0400
User-agent: Mutt/1.2.5i

I think that was this change:

* cookie path= should be a prefix of the request-URI path, so do not truncate
  request-URI path in LYSetCookie() [we got mistaken "invalid cookie path=..."
  prompt in some cases previously] -LP

On Sun, Oct 21, 2001 at 09:51:38PM -0700, Doug Kaufman wrote:
> --- lynx2.8.5dev.2/lynx2-8-5/src/LYCookie.c.ori       Wed Aug 15 14:09:52 2001
> +++ lynx2.8.5dev.2/lynx2-8-5/src/LYCookie.c   Sun Oct 21 20:29:24 2001
> @@ -1932,7 +1932,15 @@
>      } else if (!strncasecomp(address, "https:", 6)) {
>       port = 443;
>      }
> -    path = HTParse(address, "", PARSE_PATH|PARSE_PUNCTUATION);
> +    if (((path = HTParse(address, "",
> +                      PARSE_PATH|PARSE_PUNCTUATION)) != NULL) &&
> +     (ptr = strrchr(path, '/')) != NULL) {
> +     if (ptr == path) {
> +         *(ptr+1) = '\0';    /* Leave a single '/' alone */
> +     } else {
> +         *ptr = '\0';
> +     }
> +    }
>      if (!(SetCookie && *SetCookie) &&
>       !(SetCookie2 && *SetCookie2)) {
>       /*

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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