mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 15:39:03 +00:00
Fix previous patch: ':' is not allowed in file names on Windows. Fixes #1102
This commit is contained in:
@@ -183,7 +183,7 @@ local function fetch(host, port, url, destination, path, output)
|
||||
local response = http.get(host, port, build_path(path, url), nil)
|
||||
if response and response.status and response.status == 200 then
|
||||
local file = path:sub(path:find("/[^/]*$") + 1)
|
||||
local save_as = (host.targetname or host.ip) .. ":" .. tostring(port.number) .. "-" .. file
|
||||
local save_as = (host.targetname or host.ip) .. SEPARATOR .. tostring(port.number) .. "-" .. file
|
||||
local status, err_message = save_file(response.body, save_as, destination)
|
||||
if status then
|
||||
output['Successfully Downloaded'] = output['Successfully Downloaded'] or {}
|
||||
|
||||
Reference in New Issue
Block a user