Skip to content

Commit 74f2a92

Browse files
gmbeardDuncaen
authored andcommitted
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
1 parent fce1b64 commit 74f2a92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/fetch/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ fetch_urlpath_safe(char x)
364364
case '=':
365365
case '/':
366366
case ';':
367+
case '~':
367368
/* If something is already quoted... */
368369
case '%':
369370
return 1;

0 commit comments

Comments
 (0)