lib/plagiarism/strategries/duck.rb in plagiarism2-0.0.3 vs lib/plagiarism/strategries/duck.rb in plagiarism2-0.0.4
- old
+ new
@@ -11,10 +11,10 @@
def exists?(response)
doc = Nokogiri::HTML response
doc.css('.results_links_deep:not(.result--no-result)').all? do |row|
href = row.at_css('.result__a').attributes['href'].value rescue ''
- uri = URI.parse href
+ uri = URI.parse URI::encode(href)
uri.host =~ whitelists_regex
end
end
end