mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:33:33 +03:00
curl: fix the -w urle.* variables
urle.scheme, urle.user, urle.password and urle.options mistakenly operated on the original URL instead of the *effective* (last) URL. Add test 474 to verify. Reported-by: Gruber Glass Fixes #14550 Closes #14560
This commit is contained in:
parent
2401ee68a4
commit
5603204448
5 changed files with 58 additions and 5 deletions
|
|
@ -200,7 +200,7 @@ static int urlpart(struct per_transfer *per, writeoutid vid,
|
|||
char *part = NULL;
|
||||
const char *url = NULL;
|
||||
|
||||
if(vid >= VAR_INPUT_URLEHOST) {
|
||||
if(vid >= VAR_INPUT_URLESCHEME) {
|
||||
if(curl_easy_getinfo(per->curl, CURLINFO_EFFECTIVE_URL, &url))
|
||||
rc = 5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ typedef enum {
|
|||
VAR_INPUT_URLFRAGMENT,
|
||||
VAR_INPUT_URLZONEID,
|
||||
/* the same ones again for url *effective* */
|
||||
VAR_INPUT_URLESCHEME,
|
||||
VAR_INPUT_URLESCHEME, /* keep this the first URLE* variable */
|
||||
VAR_INPUT_URLEUSER,
|
||||
VAR_INPUT_URLEPASSWORD,
|
||||
VAR_INPUT_URLEOPTIONS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue