From 8120e1d484ec6b46768593ea1a8c569fe2a60637 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 16 Sep 2019 11:02:53 +0200 Subject: luci-app-commands: do not escape pipe on cmd line Signed-off-by: Florian Eckert --- applications/luci-app-commands/luasrc/controller/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-commands/luasrc/controller') diff --git a/applications/luci-app-commands/luasrc/controller/commands.lua b/applications/luci-app-commands/luasrc/controller/commands.lua index ca91813b17..433dfa14a0 100644 --- a/applications/luci-app-commands/luasrc/controller/commands.lua +++ b/applications/luci-app-commands/luasrc/controller/commands.lua @@ -144,7 +144,7 @@ local function parse_cmdline(cmdid, args) end for i, v in ipairs(argv) do - if v:match("[^%w%.%-i/]") then + if v:match("[^%w%.%-i/|]") then argv[i] = '"%s"' % v:gsub('"', '\\"') end end -- cgit v1.2.3