cmus: use correct shell escape function

This commit is contained in:
Joerg Thalheim 2017-11-22 21:05:24 +00:00
parent 5f6acea35c
commit 94f91c57ab
1 changed files with 1 additions and 3 deletions

View File

@ -11,12 +11,10 @@ local string = { gmatch = string.gmatch, format = string.format }
local helpers = require("vicious.helpers")
-- }}}
-- Cmus: provides CMUS information
-- vicious.widgets.cmus
local cmus_all = {}
-- {{{ CMUS widget type
local function worker(format, warg)
local cmus_state = {
@ -42,7 +40,7 @@ local function worker(format, warg)
end
-- Get data from CMUS server
local f = io.popen("cmus-remote --query --server " .. helpers.escape(host))
local f = io.popen("cmus-remote --query --server " .. helpers.shellquote(host))
for line in f:lines() do
for module, value in string.gmatch(line, "([%w]+) (.*)$") do