From 94f91c57ab83701c038d8ae0499b0d89996e26f1 Mon Sep 17 00:00:00 2001 From: Joerg Thalheim Date: Wed, 22 Nov 2017 21:05:24 +0000 Subject: [PATCH] cmus: use correct shell escape function --- contrib/cmus_all.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/cmus_all.lua b/contrib/cmus_all.lua index d0c74cd..17c4745 100644 --- a/contrib/cmus_all.lua +++ b/contrib/cmus_all.lua @@ -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