From 444e8a31015a1f63aea83e37afa25be12bf50902 Mon Sep 17 00:00:00 2001 From: Greg Beard Date: Sat, 7 Dec 2024 12:02:26 +0000 Subject: [PATCH] xbps-fetch: don't url-escape tilde character in path This prevents the tilde (`~`) character from being escaped as `%7e` in paths. For example, this URL didn't previously resolve correctly... ``` http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-1.1.tar.gz ``` Fixes #606 --- lib/fetch/fetch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fetch/fetch.c b/lib/fetch/fetch.c index fbf6c6fd7..0933a84cf 100644 --- a/lib/fetch/fetch.c +++ b/lib/fetch/fetch.c @@ -364,6 +364,7 @@ fetch_urlpath_safe(char x) case '=': case '/': case ';': + case '~': /* If something is already quoted... */ case '%': return 1;