Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
download: file:// deescape filename (according standard)
  • Loading branch information
perexg committed Mar 30, 2016
1 parent da03900 commit 33b3d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/download.c
Expand Up @@ -248,7 +248,9 @@ download_fetch(void *aux)
goto done;

if (strncmp(dn->url, "file://", 7) == 0) {
download_file(dn, dn->url + 7);
char *f = strdupa(dn->url + 7);
http_deescape(f);
download_file(dn, f);
goto done;
}

Expand Down

0 comments on commit 33b3d87

Please sign in to comment.