From e5b3f9861185e029b12641961d8749f2eaf41fb0 Mon Sep 17 00:00:00 2001 From: gyani Date: Sat, 4 Jul 2015 07:25:54 +0000 Subject: [PATCH] Applied Jacob Gajek's patch that allows a list of tables to be passed to fields in the vuln report table. --- nselib/vulns.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nselib/vulns.lua b/nselib/vulns.lua index 25a6e1b75..1ce086d23 100644 --- a/nselib/vulns.lua +++ b/nselib/vulns.lua @@ -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)