widgets/gmail: shell escape feed variable
This commit is contained in:
parent
8c79e866e9
commit
c760e43b98
|
@ -39,7 +39,7 @@ local mail = {
|
||||||
-- {{{ Gmail widget type
|
-- {{{ Gmail widget type
|
||||||
local function worker(format, warg)
|
local function worker(format, warg)
|
||||||
-- Get info from the Gmail atom feed
|
-- 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
|
-- Could be huge don't read it all at once, info we are after is at the top
|
||||||
local xml = f:read(2000)
|
local xml = f:read(2000)
|
||||||
|
|
Loading…
Reference in New Issue