surf

my build of surf
git clone git://git.ckyln.com/~cem/surf.git
Log | Files | Refs | README | LICENSE

commit d04fb9bff3796025eeedf0f32ae1c0a40366f717
parent af7522006b2aa1b92081a474f831df52d6d9ff13
Author: Dmitrij D. Czarkoff <czarkoff@gmail.com>
Date:   Sun,  6 Mar 2016 01:14:52 +0100

Disable globbing in curl command

Curl is invoked for downloading particular files.  Without "-g" flag it would
apply globbing rules to URLs, which may end badly in case URL is not properly
quoted.

Diffstat:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -53,7 +53,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | /* DOWNLOAD(URI, referer) */ #define DOWNLOAD(d, r) { \ .v = (const char *[]){ "/bin/sh", "-c", \ - "st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \ + "st -e /bin/sh -c \"curl -g -L -J -O --user-agent '$1'" \ " --referer '$2' -b $3 -c $3 '$0';" \ " sleep 5;\"", \ d, useragent, r, cookiefile, NULL \