Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
gmbeard committed Dec 8, 2024
commit 444e8a31015a1f63aea83e37afa25be12bf50902
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