cookies: follow-up fix for path checking

The initial fix to only compare full path names were done in commit
04f52e9b4d but found out to be incomplete. This takes should make the
change more complete and there's now two additional tests to verify
(test 31 and 62).
This commit is contained in:
YAMADA Yasuharu 2013-06-12 11:19:56 +02:00 committed by Daniel Stenberg
parent 9e10963c20
commit f24dc09d20
4 changed files with 135 additions and 23 deletions

View file

@ -29,7 +29,8 @@ struct Cookie {
struct Cookie *next; /* next in the chain */
char *name; /* <this> = value */
char *value; /* name = <this> */
char *path; /* path = <this> */
char *path; /* path = <this> which is in Set-Cookie: */
char *spath; /* sanitized cookie path */
char *domain; /* domain = <this> */
curl_off_t expires; /* expires = <this> */
char *expirestr; /* the plain text version */