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:
Florian Eckert 2019-10-01 10:05:49 +02:00 committed by GitHub
commit 68190f43ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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