widgets/gmail: shell escape feed variable

This commit is contained in:
Jörg Thalheim 2014-11-12 23:43:24 +01:00
parent 8c79e866e9
commit c760e43b98
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
1 changed files with 1 additions and 1 deletions

View File

@ -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)