1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Applied Jacob Gajek's patch that allows a list of tables to be passed

to fields in the vuln report table.
This commit is contained in:
gyani
2015-07-04 07:25:54 +00:00
parent 2843f4535c
commit e5b3f98611

View File

@@ -1767,7 +1767,11 @@ local format_vuln_special_fields = function(vuln_field)
if vuln_field then
if type(vuln_field) == "table" then
for _, line in ipairs(vuln_field) do
tadd(out, stdnse.strsplit("\r?\n", line))
if type(line) == "string" then
tadd(out, stdnse.strsplit("\r?\n", line))
else
insert(out, line)
end
end
elseif type(vuln_field) == "string" then
out = stdnse.strsplit("\r?\n", vuln_field)