Skip to content

Commit

Permalink
xbps-fetch: don't url-escape tilde character in path
Browse files Browse the repository at this point in the history
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 void-linux#606
  • Loading branch information
gmbeard committed Dec 8, 2024
1 parent e82437f commit 444e8a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fetch/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ fetch_urlpath_safe(char x)
case '=':
case '/':
case ';':
case '~':
/* If something is already quoted... */
case '%':
return 1;
Expand Down

0 comments on commit 444e8a3

Please sign in to comment.