mirror of
https://github.com/curl/curl.git
synced 2026-04-28 05:42:19 +03:00
url: URL encode the path when extracted, if spaces were set
This commit is contained in:
parent
c3fc406ebb
commit
90a7017acb
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue