git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5e7e9b5
)
luci-app-commands: do not escape pipe on cmd line
author
Florian Eckert
<redacted>
Mon, 16 Sep 2019 09:02:53 +0000
(11:02 +0200)
committer
Florian Eckert
<redacted>
Wed, 18 Sep 2019 14:05:31 +0000
(16:05 +0200)
Signed-off-by: Florian Eckert <redacted>
applications/luci-app-commands/luasrc/controller/commands.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-commands/luasrc/controller/commands.lua
b/applications/luci-app-commands/luasrc/controller/commands.lua
index ca91813b1774fa1d93ea8da88d35937e54d28549..433dfa14a0bfe85082102110456efece7aaa4fe2 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT