From 8d3907ff65f9798f83b2ac21f2065b550691fc97 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 22 May 2014 17:45:10 +0200 Subject: [PATCH] Fixes the location of the robots.txt check --- lib/wpscan/web_site/robots_txt.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wpscan/web_site/robots_txt.rb b/lib/wpscan/web_site/robots_txt.rb index 714667a3..f3430403 100644 --- a/lib/wpscan/web_site/robots_txt.rb +++ b/lib/wpscan/web_site/robots_txt.rb @@ -12,9 +12,7 @@ class WebSite # Gets a robots.txt URL # @return [ String ] def robots_url - temp = @uri.clone - temp.path = '/robots.txt' - temp.to_s + @uri.clone.merge('robots.txt').to_s end