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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user