diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-10-01 10:05:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 10:05:49 +0200 |
commit | 68190f43ca38d67e6d1e821f55c3cfbb1e6018ca (patch) | |
tree | 67fe76404b0ec81858f75be60666b15ea1a58a51 /applications/luci-app-commands/luasrc/controller/commands.lua | |
parent | b7ee57adaf97869c24a88c90617bb402731b5817 (diff) | |
parent | 8120e1d484ec6b46768593ea1a8c569fe2a60637 (diff) |
Merge pull request #3064 from TDT-AG/pr/20190913-luci-app-commands
luci-app-commands: fix escaping of additional shell chars
Diffstat (limited to 'applications/luci-app-commands/luasrc/controller/commands.lua')
-rw-r--r-- | applications/luci-app-commands/luasrc/controller/commands.lua | 2 |
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 ca91813b17..433dfa14a0 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 |