fix for relative sitemap urls

pull/1/head
Michael Peter Christen 11 years ago
parent b488f33975
commit bd54b85d46

@ -473,7 +473,7 @@ public class Crawler_p {
}
} else if ("sitemap".equals(crawlingMode)) {
try {
final DigestURL sitemapURL = new DigestURL(sitemapURLStr);
final DigestURL sitemapURL = sitemapURLStr.indexOf("//") > 0 ? new DigestURL(sitemapURLStr) : new DigestURL(rootURLs.iterator().next(), sitemapURLStr); // fix for relative paths which should not exist but are used anyway
sb.crawler.putActive(handle, profile);
final SitemapImporter importer = new SitemapImporter(sb, sitemapURL, profile);
importer.start();

Loading…
Cancel
Save