1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

merge soc07 r4804 - misc. NSE improvements

This commit is contained in:
fyodor
2007-08-11 03:32:26 +00:00
parent b642be63c5
commit c6f2ab6e83
6 changed files with 38 additions and 3 deletions

View File

@@ -56,6 +56,10 @@ action = function(host, port)
if title ~= nil then
result = string.gsub(title , "[\n\r\t]", "")
if string.len(title) > 50 then
nmap.print_debug_unformatted("showHTMLTitle.nse: title was truncated!");
result = string.sub(result, 1, 62) .. "..."
end
else
result = "Site doesn't have a title."
end