1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-03 20:16:33 +00:00

Fixing some indentation.

This commit is contained in:
joao
2009-08-28 22:26:56 +00:00
parent 9789a1c6a4
commit 5457ecf54e

View File

@@ -113,15 +113,15 @@ function parseIcon( body )
-- check each tag for our favicon tag
for k, v in ipairs(tags) do
icon = string.match( v, '<(%s-link.-rel%s-=%s-".-icon".-/?)>')
icon = string.match( v, '<(%s-link.-rel%s-=%s-".-icon".-/?)>')
if icon then
icon = string.match( icon, 'href%s*=%s*"(.-)"')
-- if favicon is in absolute format, we need to parse it!
absolute_icon = string.match(icon, '^http://')
if absolute_icon then
parsed_icon = url.parse(icon)
icon = parsed_icon.path
end
-- if favicon is in absolute format, we need to parse it!
absolute_icon = string.match(icon, '^http://')
if absolute_icon then
parsed_icon = url.parse(icon)
icon = parsed_icon.path
end
break
end
end