about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-03-06 01:14:52 +0100
committerQuentin Rameau <quinq@fifth.space>2016-03-06 09:34:07 +0100
commitd04fb9bff3796025eeedf0f32ae1c0a40366f717 (patch)
tree660acd2a6716292f8d6576f8e1bb63e51a6737d5
parentGet rid of JavaScript for scrolling in views (diff)
downloadsurf-d04fb9bff3796025eeedf0f32ae1c0a40366f717.tar.gz
surf-d04fb9bff3796025eeedf0f32ae1c0a40366f717.tar.bz2
surf-d04fb9bff3796025eeedf0f32ae1c0a40366f717.zip
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.
-rw-r--r--config.def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index aca8f59..9682d0d 100644
--- 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 \