diff --git a/scripts/http-git.nse b/scripts/http-git.nse index 55fc0d631..ef6d40ebf 100644 --- a/scripts/http-git.nse +++ b/scripts/http-git.nse @@ -260,6 +260,6 @@ function action(host, port) end -- Replace non-printing characters with asterisks - if #out > 0 then return string.gsub(stdnse.format_output(true, out), "[^%w%p%s]", "*") + if #out > 0 then return stdnse.format_output(true, out) else return nil end end