escape brackets

This commit is contained in:
Jouni
2021-09-27 20:39:19 +03:00
parent b8efe2ecca
commit 3cd13d8cba

View File

@ -24,6 +24,8 @@ function getranges()
local API = ("%s?%s"):format(options.server,table.concat(args,"&")) local API = ("%s?%s"):format(options.server,table.concat(args,"&"))
if not(luacurl_available) then -- if Lua-cURL is not available on this system if not(luacurl_available) then -- if Lua-cURL is not available on this system
local API = API:gsub("%[", "\\["):gsub("]", "\\]")
local curl_cmd = { local curl_cmd = {
"curl", "curl",
"-L", "-L",