diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-07-08 18:52:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-07-08 18:52:08 +0000 |
commit | 28611704d991dcc0358705937af83d291b7e1f30 (patch) | |
tree | 2c2206a83e6d5ba69d424a0d1da3ff9761e0ccfd /lib/cookie.c | |
parent | 305dddeab0ee21f43d6c9184638e40b84a8dea67 (diff) | |
download | curl-28611704d991dcc0358705937af83d291b7e1f30.tar.gz |
Ates Goral pointed out that libcurl's cookie parser did case insensitive
string comparisons on the path which is incorrect and provided a patch that
fixes this. I edited test case 8 to include details that test for this.
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index d934868ca..00f7b0fa7 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -760,7 +760,9 @@ struct Cookie *Curl_cookie_getlist(struct CookieInfo *c, /* now check the left part of the path with the cookies path requirement */ if(!co->path || - checkprefix(co->path, path) ) { + /* not using checkprefix() because matching should be + case-sensitive */ + !strncmp(co->path, path, strlen(co->path)) ) { /* and now, we know this is a match and we should create an entry for the return-linked-list */ |