diff --git a/scripts/http-rfi-spider.nse b/scripts/http-rfi-spider.nse index 06b2c5251..250667063 100644 --- a/scripts/http-rfi-spider.nse +++ b/scripts/http-rfi-spider.nse @@ -286,6 +286,8 @@ function action(host, port) table.insert(text_output, rfi) end - return output, stdnse.format_output(true, text_output) + if #text_output > 0 then + return output, stdnse.format_output(true, text_output) + end end