Merge pull request #12 from kurumushi/patch-1

Change io.popen to io.open so we don't execute image files.
This commit is contained in:
Luke Bonham 2013-11-18 11:01:09 -08:00
commit 708d85fe06
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
--[[
Licensed under GNU General Public License v2
@ -115,7 +114,7 @@ local function fetch_weather()
sky = sky .. forecast:gsub(" ", ""):gsub("/", "") .. ".png"
-- In case there's no defined icon for current forecast
f = io.popen(sky)
f = io.open(sky)
if f == nil then
sky = icon_path .. "na.png"
else