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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user