mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +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;
|
||||
u = curl_url();
|
||||
if(u) {
|
||||
uc = curl_url_set(u, CURLUPART_URL, url, 0);
|
||||
uc = curl_url_set(u, CURLUPART_URL, url, CURLU_GUESS_SCHEME);
|
||||
if(uc)
|
||||
goto error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user