summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-x[-rw-r--r--]lib/custodian/webfetch.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/custodian/webfetch.rb b/lib/custodian/webfetch.rb
index 8948958..34052ca 100644..100755
--- a/lib/custodian/webfetch.rb
+++ b/lib/custodian/webfetch.rb
@@ -69,7 +69,20 @@ class WebFetch
#
# Shell out to curl (!!!) to do the fetch.
#
- system( "curl --max-time #{timeout} --silent --location --insecure --dump-header #{head} --out #{body} --silent #{@url}")
+ # Avoid using the actual shell to avoid a security risk
+ #
+ system( "curl",
+ "--max-time",
+ timeout.to_s,
+ "--silent",
+ "--location",
+ "--insecure",
+ "--dump-header",
+ head,
+ "--out",
+ body,
+ "--silent",
+ @url )
#