From: Florian Eckert Date: Mon, 16 Sep 2019 09:02:53 +0000 (+0200) Subject: luci-app-commands: do not escape pipe on cmd line X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F3064%2Fhead;p=oweals%2Fluci.git luci-app-commands: do not escape pipe on cmd line Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-commands/luasrc/controller/commands.lua b/applications/luci-app-commands/luasrc/controller/commands.lua index ca91813b1..433dfa14a 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