1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Don't print out a blank line in http-methods.nse when there's nothing to

report.
This commit is contained in:
david
2010-03-02 22:44:10 +00:00
parent a90ba28583
commit 1906c0febd

View File

@@ -127,7 +127,7 @@ action = function(host, port)
end
end
return stdnse.strjoin("\n", output)
return #output > 0 and stdnse.strjoin("\n", output) or nil
end
local function contains(t, elem)