1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 00:49:01 +00:00

merge soc07 r4990 - fixed tiny oversight in nselib debug function

This commit is contained in:
fyodor
2007-08-11 04:39:39 +00:00
parent e988f4878d
commit 1ffa6fd8c0
2 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ license = "See nmaps COPYING for licence"
categories = {"demo", "safe"}
require "shortport"
require "stdnse"
portrule = shortport.port_or_service(80, "http")
@@ -50,7 +51,7 @@ action = function(host, port)
if title ~= nil then
result = string.gsub(title , "[\n\r\t]", "")
if string.len(title) > 50 then
nmap.print_debug("showHTMLTitle.nse: Title got truncated!");
stdnse.print_debug("showHTMLTitle.nse: Title got truncated!");
result = string.sub(result, 1, 62) .. "..."
end
else