[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev LYCookie.c handles path (w/o trailing slash) incorrectly
From: |
John Hascall |
Subject: |
lynx-dev LYCookie.c handles path (w/o trailing slash) incorrectly |
Date: |
Mon, 09 Aug 1999 17:04:29 CDT |
While this works as expected:
lynx http://some.web.host/cgi-bin/somecgi/
if, for example, we do:
lynx http://some.web.host/cgi-bin/somecgi
and somecgi sends a cookie back containing:
path=/cgi-bin/somecgi
then lynx[1] complains:
Accept invalid cookie path=/cgi-bin/somecgi as a prefix of '/cgi-bin'?
because it is finding that last slash and whacking off everything after it.
It appears that the solution is to change line 1845 of LYCookie.c
from:
} else {
to:
} else if (*(ptr+1) == '\0') { /* only zap a trailing slash */
Thanks,
John
-----------------
[1] I'm using 2.8.2 but viewing the 2.8.3 source looks like it is the same.
- lynx-dev LYCookie.c handles path (w/o trailing slash) incorrectly,
John Hascall <=