From c760e43b98c89d916bd65bc7e90f6f6752642cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 12 Nov 2014 23:43:24 +0100 Subject: [PATCH] widgets/gmail: shell escape feed variable --- widgets/gmail.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/gmail.lua b/widgets/gmail.lua index 84f2125..e3e5503 100644 --- a/widgets/gmail.lua +++ b/widgets/gmail.lua @@ -39,7 +39,7 @@ local mail = { -- {{{ Gmail widget type local function worker(format, warg) -- Get info from the Gmail atom feed - local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. feed) + local f = io.popen("curl --connect-timeout 1 -m 3 -fsn " .. helpers.shellquote(feed[1])) -- Could be huge don't read it all at once, info we are after is at the top local xml = f:read(2000)