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

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2019-09-16 11:02:53 +02:00
parent 5e7e9b58cf
commit 8120e1d484

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