From 093598ac99f6b029bcbb39370bc61cbd2eddd6c7 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 26 Jan 2015 18:16:50 +0100 Subject: [PATCH] Fixes #760 --- lib/wpscan/web_site.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wpscan/web_site.rb b/lib/wpscan/web_site.rb index 6ba0f1d9..271949eb 100644 --- a/lib/wpscan/web_site.rb +++ b/lib/wpscan/web_site.rb @@ -59,6 +59,8 @@ class WebSite redirection = "#{redirected_uri.scheme}://#{redirected_uri.host}#{redirection}" end + return redirection if url == redirection # prevents infinite loop + # Let's check if there is a redirection in the redirection if other_redirection = redirection(redirection) redirection = other_redirection