Digest::MD5.hexdigest replaced by WebSite.page_hash

This commit is contained in:
dctabuyz
2015-01-06 23:05:57 +03:00
parent 265bfcd7c8
commit 5adefda286
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class WpTarget < WebSite
response = Browser.get(@uri.merge('wp-content').to_s)
if WpTarget.valid_response_codes.include?(response.code)
hash = Digest::MD5.hexdigest(response.body)
hash = WebSite.page_hash(response)
return true if hash != error_404_hash and hash != homepage_hash
end

View File

@@ -10,7 +10,7 @@ class WpTarget < WebSite
response = Browser.get(must_use_url)
if response && WpTarget.valid_response_codes.include?(response.code)
hash = Digest::MD5.hexdigest(response.body)
hash = WebSite.page_hash(response)
return true if hash != error_404_hash && hash != homepage_hash
end