From: Jaroslav Kysela Date: Wed, 30 Mar 2016 11:56:30 +0000 (+0200) Subject: download: file:// deescape filename (according standard) X-Git-Tag: v4.2.1~769 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b3d87cc1a8bedb1cd82472ac6f439dade66202;p=thirdparty%2Ftvheadend.git download: file:// deescape filename (according standard) --- diff --git a/src/download.c b/src/download.c index b63215795..48af26a64 100644 --- a/src/download.c +++ b/src/download.c @@ -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; }