diff --git a/crontab/crawler.php b/crontab/crawler.php index fe8ffb9..a8a8c72 100644 --- a/crontab/crawler.php +++ b/crontab/crawler.php @@ -126,7 +126,7 @@ foreach ($db->getCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECONDS_OFFSET $href = $queueHostPage->scheme . '://' . $queueHostPage->name . ($queueHostPage->port ? ':' . $queueHostPage->port : '') . - '/' . ltrim($href, '/'); + '/' . ltrim(str_replace(['./', '../'], '', $href), '/'); } // Validate formatted link