From 5564751f27950c83418affb262162bbf7e9f8af0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 28 Mar 2024 13:16:04 +0100 Subject: [PATCH] tool_xattr: "guess" URL scheme if none is provided MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... when figuring out the source URL to store. Reported-by: Dagfinn Ilmari Mannsåker Fixes #13205 Closes #13221 --- src/tool_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_xattr.c b/src/tool_xattr.c index a6bd223c36..f832e24757 100644 --- a/src/tool_xattr.c +++ b/src/tool_xattr.c @@ -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;