From 1906c0febd117463596bf75940e33e3b1c4bb764 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 2 Mar 2010 22:44:10 +0000 Subject: [PATCH] Don't print out a blank line in http-methods.nse when there's nothing to report. --- scripts/http-methods.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-methods.nse b/scripts/http-methods.nse index 736abb5b3..264c8ac10 100644 --- a/scripts/http-methods.nse +++ b/scripts/http-methods.nse @@ -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)