lib/w3clove/sitemap.rb in w3clove-0.7.4 vs lib/w3clove/sitemap.rb in w3clove-0.7.5

- old
+ new

@@ -72,10 +72,10 @@ end # Tells if the given url looks like an HTML page. # That is, it does not look like javascript, image, pdf... def looks_like_html?(url) - u = URI.parse(url) + u = URI.parse(URI.encode(url)) scheme = u.scheme extension = u.path.split(".").last (scheme =~ /http[s]?/i) && (extension !~ /gif|jpg|jpeg|png|tiff|bmp|txt|pdf|doc|xls|wav|mp3|ogg/i) end \ No newline at end of file