Skip to content

Commit c7ae50d

Browse files
authored
fix(crawler): sitemaps poisoning crawls with unrelated links (#1334)
1 parent da6b750 commit c7ae50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/scraper/WebScraper/crawler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class WebCrawler {
271271
return urlsHandler(urls);
272272
} else {
273273
let filteredLinks = this.filterLinks(
274-
[...new Set(urls)],
274+
[...new Set(urls)].filter(x => this.filterURL(x, this.initialUrl) !== null),
275275
leftOfLimit,
276276
this.maxCrawledDepth,
277277
fromMap,

0 commit comments

Comments
 (0)