escape brackets
This commit is contained in:
		| @@ -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", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user