mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:33:39 +03:00
cookie: treat cookie name case sensitively
Extend test 31 to verify Reported-by: delogicsreal on github Fixes #15492 Closes #15493
This commit is contained in:
parent
b1ef0e1a01
commit
9919149aef
2 changed files with 5 additions and 2 deletions
|
|
@ -989,7 +989,7 @@ replace_existing(struct Curl_easy *data,
|
|||
size_t myhash = cookiehash(co->domain);
|
||||
for(n = Curl_llist_head(&ci->cookielist[myhash]); n; n = Curl_node_next(n)) {
|
||||
struct Cookie *clist = Curl_node_elem(n);
|
||||
if(strcasecompare(clist->name, co->name)) {
|
||||
if(!strcmp(clist->name, co->name)) {
|
||||
/* the names are identical */
|
||||
bool matching_domains = FALSE;
|
||||
|
||||
|
|
@ -1029,7 +1029,7 @@ replace_existing(struct Curl_easy *data,
|
|||
}
|
||||
}
|
||||
|
||||
if(!replace_n && strcasecompare(clist->name, co->name)) {
|
||||
if(!replace_n && !strcmp(clist->name, co->name)) {
|
||||
/* the names are identical */
|
||||
|
||||
if(clist->domain && co->domain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue