[hackers] [surf] Disable globbing in curl command || Dmitrij D. Czarkoff

From: <git_AT_suckless.org>
Date: Sun, 6 Mar 2016 09:35:46 +0100 (CET)

commit d04fb9bff3796025eeedf0f32ae1c0a40366f717
Author: Dmitrij D. Czarkoff <czarkoff_AT_gmail.com>
AuthorDate: Sun Mar 6 01:14:52 2016 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Mar 6 09:34:07 2016 +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.

diff --git a/config.def.h b/config.def.h
index aca8f59..9682d0d 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -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 \
Received on Sun Mar 06 2016 - 09:35:46 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 06 2016 - 09:36:12 CET