luci-app-commands: do not escape pipe on cmd line

fixes #4036

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 8120e1d484)
This commit is contained in:
Florian Eckert 2019-09-16 11:02:53 +02:00
parent ae3949669b
commit 6d9a0488d6

View file

@ -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