luci-app-commands: do not escape pipe on cmd line 3064/head
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 16 Sep 2019 09:02:53 +0000 (11:02 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 18 Sep 2019 14:05:31 +0000 (16:05 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
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