mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
2843f4535c
commit
e5b3f98611
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue