mirror of
https://github.com/curl/curl.git
synced 2026-07-31 15:18:04 +03:00
cookie: treat a blank domain in Set-Cookie: as non-existing
This matches what RFC 6265 section 5.2.3 says. Extended test 31 to verify. Fixes #9164 Reported-by: Gwen Shapira Closes #9177
This commit is contained in:
parent
c2e72c7812
commit
4c0ac2aa59
2 changed files with 3 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ Curl_cookie_add(struct Curl_easy *data,
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if(strcasecompare("domain", name)) {
|
||||
else if(strcasecompare("domain", name) && whatptr[0]) {
|
||||
bool is_ip;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue