From: Gordon Hecker Date: Wed, 24 Mar 2010 08:26:24 +0000 (+0100) Subject: bugfix: quote curl args X-Git-Tag: e2factory-2.3.6pre1~7 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=62c349b5e41b66964c27b41072da31a2717cd64f;p=e2factory.git bugfix: quote curl args Signed-off-by: Gordon Hecker --- diff --git a/generic/transport.lua b/generic/transport.lua index fbcda6d..6af13a4 100644 --- a/generic/transport.lua +++ b/generic/transport.lua @@ -60,7 +60,7 @@ function fetch_file(surl, location, destdir, destname) u.transport == "https" then -- use special flags here local curlflags = "--create-dirs --silent --show-error --fail" - local args = string.format("%s %s/%s -o %s/%s", + local args = string.format("%s '%s/%s' -o '%s/%s'", curlflags, u.url, location, destdir, tmpfile) rc, re = e2lib.curl(args) if not rc then