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:
parent
ae3949669b
commit
6d9a0488d6
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ local function parse_cmdline(cmdid, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i, v in ipairs(argv) do
|
for i, v in ipairs(argv) do
|
||||||
if v:match("[^%w%.%-i/]") then
|
if v:match("[^%w%.%-i/|]") then
|
||||||
argv[i] = '"%s"' % v:gsub('"', '\\"')
|
argv[i] = '"%s"' % v:gsub('"', '\\"')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue