mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
url: URL encode the path when extracted, if spaces were set
This commit is contained in:
parent
c3fc406ebb
commit
90a7017acb
@ -2111,7 +2111,8 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data,
|
||||
else if(uc != CURLUE_NO_OPTIONS)
|
||||
return Curl_uc_to_curlcode(uc);
|
||||
|
||||
uc = curl_url_get(uh, CURLUPART_PATH, &data->state.up.path, 0);
|
||||
uc = curl_url_get(uh, CURLUPART_PATH, &data->state.up.path,
|
||||
CURLU_URLENCODE);
|
||||
if(uc)
|
||||
return Curl_uc_to_curlcode(uc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user