mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
tool_xattr: "guess" URL scheme if none is provided
... when figuring out the source URL to store. Reported-by: Dagfinn Ilmari Mannsåker Fixes #13205 Closes #13221
This commit is contained in:
parent
a15de6f785
commit
5564751f27
@ -55,7 +55,7 @@ char *stripcredentials(const char *url)
|
|||||||
char *nurl;
|
char *nurl;
|
||||||
u = curl_url();
|
u = curl_url();
|
||||||
if(u) {
|
if(u) {
|
||||||
uc = curl_url_set(u, CURLUPART_URL, url, 0);
|
uc = curl_url_set(u, CURLUPART_URL, url, CURLU_GUESS_SCHEME);
|
||||||
if(uc)
|
if(uc)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user