1
1
Fork 0
mirror of https://github.com/vicious-widgets/vicious synced 2023-12-14 07:13:07 +01:00

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

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)