From: Alex Kir Date: Tue, 25 Nov 2014 21:14:56 +0000 (+0200) Subject: Some might have spaces in passwords (Like I do) and then curl fails. X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/1973b16fdc6a371e6dadcf9b8f25196202013145 Some might have spaces in passwords (Like I do) and then curl fails. * Changed string formatting of password to %q to always quote password --- diff --git a/widgets/imap.lua b/widgets/imap.lua index d4b4cba..1ebbb76 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -54,7 +54,7 @@ local function worker(args) position = "top_left" } - curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%s %s -k", + curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%q %s -k", head_command, server, port, mail, password, request) async.request(curl, function(f)