luci-app-commands: do not escape pipe on cmd line
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 16 Sep 2019 09:02:53 +0000 (11:02 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 13 May 2020 14:05:08 +0000 (16:05 +0200)
fixes #4036

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 8120e1d484ec6b46768593ea1a8c569fe2a60637)

applications/luci-app-commands/luasrc/controller/commands.lua

index ca91813b1774fa1d93ea8da88d35937e54d28549..433dfa14a0bfe85082102110456efece7aaa4fe2 100644 (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