From 6d9a0488d65413743c7bc1d0bff5fef6b9713b49 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 16 Sep 2019 11:02:53 +0200 Subject: [PATCH] luci-app-commands: do not escape pipe on cmd line fixes #4036 Signed-off-by: Florian Eckert (cherry picked from commit 8120e1d484ec6b46768593ea1a8c569fe2a60637) --- applications/luci-app-commands/luasrc/controller/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2