From: Daniel Stenberg Date: Wed, 8 Jun 2022 14:32:46 +0000 (+0200) Subject: url: URL encode the path when extracted, if spaces were set X-Git-Tag: curl-7_84_0~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90a7017acb174e356abbb44164afa2cc02eef0bb;p=thirdparty%2Fcurl.git url: URL encode the path when extracted, if spaces were set --- diff --git a/lib/url.c b/lib/url.c index dc7bbfda2f..5ca3410f50 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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);