mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
merge soc07 r4990 - fixed tiny oversight in nselib debug function
This commit is contained in:
parent
e988f4878d
commit
1ffa6fd8c0
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue