mirror of https://github.com/lcpz/lain.git
Change io.popen to io.open so we don't execute image files.
This commit is contained in:
parent
5894811766
commit
2151e99477
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Licensed under GNU General Public License v2
|
Licensed under GNU General Public License v2
|
||||||
|
@ -115,7 +114,7 @@ local function fetch_weather()
|
||||||
sky = sky .. forecast:gsub(" ", ""):gsub("/", "") .. ".png"
|
sky = sky .. forecast:gsub(" ", ""):gsub("/", "") .. ".png"
|
||||||
|
|
||||||
-- In case there's no defined icon for current forecast
|
-- In case there's no defined icon for current forecast
|
||||||
f = io.popen(sky)
|
f = io.open(sky)
|
||||||
if f == nil then
|
if f == nil then
|
||||||
sky = icon_path .. "na.png"
|
sky = icon_path .. "na.png"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue