From 5457ecf54ea8e6a69a7af4a253624eb0b590b033 Mon Sep 17 00:00:00 2001 From: joao Date: Fri, 28 Aug 2009 22:26:56 +0000 Subject: [PATCH] Fixing some indentation. --- scripts/http-favicon.nse | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/http-favicon.nse b/scripts/http-favicon.nse index 4b8c060c9..817ff3828 100644 --- a/scripts/http-favicon.nse +++ b/scripts/http-favicon.nse @@ -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