Skip to content

Commit 94f91c5

Browse files
committed
cmus: use correct shell escape function
1 parent 5f6acea commit 94f91c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/cmus_all.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ local string = { gmatch = string.gmatch, format = string.format }
1111
local helpers = require("vicious.helpers")
1212
-- }}}
1313

14-
1514
-- Cmus: provides CMUS information
1615
-- vicious.widgets.cmus
1716
local cmus_all = {}
1817

19-
2018
-- {{{ CMUS widget type
2119
local function worker(format, warg)
2220
local cmus_state = {
@@ -42,7 +40,7 @@ local function worker(format, warg)
4240
end
4341

4442
-- Get data from CMUS server
45-
local f = io.popen("cmus-remote --query --server " .. helpers.escape(host))
43+
local f = io.popen("cmus-remote --query --server " .. helpers.shellquote(host))
4644

4745
for line in f:lines() do
4846
for module, value in string.gmatch(line, "([%w]+) (.*)$") do

0 commit comments

Comments
 (0)