mirror of https://github.com/lcpz/lain.git
Some might have spaces in passwords (Like I do) and then curl fails.
* Changed string formatting of password to %q to always quote password
This commit is contained in:
parent
809af4dcf4
commit
024e9bce60
|
@ -54,7 +54,7 @@ local function worker(args)
|
||||||
position = "top_left"
|
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)
|
head_command, server, port, mail, password, request)
|
||||||
|
|
||||||
async.request(curl, function(f)
|
async.request(curl, function(f)
|
||||||
|
|
Loading…
Reference in New Issue