From 3ee64878154b38784d4920274d906121ecc8bce1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 26 Aug 2012 19:40:10 +0200 Subject: [PATCH] Don't keep the % in the URL when converted into a file name When a file name is manufactured from a URL, the percent sign is removed to prevent the web server or the browser from requesting a file with a % in it. The server or the browser would decode the percent sign if the two subsequent bytes happened to be a valid hexadecimal byte and would request the wrong file. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 5e5b885..0c0c243 100644 --- a/util.c +++ b/util.c @@ -1849,7 +1849,7 @@ void url_to_file(const char *url,char *file,int filesize) filesize--; skip=0; for(i=0; i