Merge pull request #3064 from TDT-AG/pr/20190913-luci-app-commands
luci-app-commands: fix escaping of additional shell chars
This commit is contained in:
commit
68190f43ca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue