summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-09-16 11:02:53 +0200
committerFlorian Eckert <fe@dev.tdt.de>2019-09-18 16:05:31 +0200
commit8120e1d484ec6b46768593ea1a8c569fe2a60637 (patch)
tree1c5010a5e269d072181a5d19531509e883e01998 /applications
parent5e7e9b58cf68f88593a473cfea07e288b3a28f65 (diff)
luci-app-commands: do not escape pipe on cmd line
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-commands/luasrc/controller/commands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-commands/luasrc/controller/commands.lua b/applications/luci-app-commands/luasrc/controller/commands.lua
index ca91813b1..433dfa14a 100644
--- a/applications/luci-app-commands/luasrc/controller/commands.lua
+++ b/applications/luci-app-commands/luasrc/controller/commands.lua
@@ -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