fix http-config-backup print issues

This commit is contained in:
h00die 2026-08-26 14:08:54 -04:00
parent f522f0cc9d
commit 8f03d98c9e

View file

@ -230,7 +230,11 @@ action = function (host, port)
end
end
table.insert(backups, url_path .. " " .. response["status-line"]);
-- Trim the trailing CRLF: response["status-line"] keeps it, and
-- format_output's line splitter cannot step over the \r, so a raw
-- status-line renders every entry as a blank row.
table.insert(backups, url_path .. " "
.. response["status-line"]:match("^[^\r\n]+"));
else
stdnse.debug1("%s: found but not matching: %s",
host.targetname or host.ip, url_path);