Change io.popen to io.open so we don't execute image files.

This commit is contained in:
kurumushi 2013-11-19 01:16:36 +09:00
parent fec60d0af7
commit feb67f2e7c
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