mirror of
https://github.com/curl/curl.git
synced 2026-08-02 08:50:28 +03:00
http: clear digest nonce on cross-orgin redirect
Verify in test 1966 Reported-by: Yalguun Tumenkhuu Closes #21359
This commit is contained in:
parent
97cf21acd2
commit
6daf4bc7e2
3 changed files with 123 additions and 0 deletions
|
|
@ -1245,6 +1245,11 @@ CURLcode Curl_http_follow(struct Curl_easy *data, const char *newurl,
|
|||
same_origin = Curl_url_same_origin(u, data->state.uh);
|
||||
curl_url_cleanup(u);
|
||||
|
||||
#ifndef CURL_DISABLE_DIGEST_AUTH
|
||||
if(!same_origin)
|
||||
Curl_auth_digest_cleanup(&data->state.digest);
|
||||
#endif
|
||||
|
||||
if((!same_origin && !data->set.allow_auth_to_other_hosts) ||
|
||||
!data->set.str[STRING_USERNAME]) {
|
||||
result = Curl_reset_userpwd(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue