mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:13:33 +03:00
urlapi: respect CURLU_ALLOW_SPACE and CURLU_NO_AUTHORITY for redirects
curl_url_set(uh, CURLUPART_URL, redirurl, flags) was not respecing CURLU_ALLOW_SPACE and CURLU_NO_AUTHORITY in the host part of redirurl when redirecting to an absolute URL. Closes #11136
This commit is contained in:
parent
e743425bc6
commit
df6c2f7b54
2 changed files with 18 additions and 6 deletions
|
|
@ -984,6 +984,14 @@ static const struct redircase set_url_list[] = {
|
|||
"../newpage",
|
||||
"http://user:foo@example.com/newpage",
|
||||
0, 0, CURLUE_OK},
|
||||
{"http://user:foo@example.com/path?query#frag",
|
||||
"http://example org/",
|
||||
"http://example org/",
|
||||
0, CURLU_ALLOW_SPACE, CURLUE_OK},
|
||||
{"http://user:foo@example.com/path?query#frag",
|
||||
"http://?hi",
|
||||
"http:///?hi",
|
||||
0, CURLU_NO_AUTHORITY, CURLUE_OK},
|
||||
{NULL, NULL, NULL, 0, 0, CURLUE_OK}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue