Don't try to play with the comments in passive detection, just ignore them

This commit is contained in:
erwanlr
2014-09-02 20:42:17 +02:00
parent 96ae8ade5d
commit bd8e6db092
4 changed files with 14 additions and 21 deletions

View File

@@ -83,7 +83,7 @@ class WpItems < Array
results = new(wp_target)
# improves speed
body = remove_base64_images_from_html(Browser.get(wp_target.url).body)
page = Nokogiri::HTML(remove_conditional_comments(body))
page = Nokogiri::HTML(body)
names = []
page.css('link,script,style').each do |tag|