Index: typo3/sysext/indexed_search/class.crawler.php =================================================================== --- typo3/sysext/indexed_search/class.crawler.php (revision 5837) +++ typo3/sysext/indexed_search/class.crawler.php (working copy) @@ -27,7 +27,7 @@ /** * Crawler hook for indexed search. Works with the "crawler" extension * - * @author Kasper Skårhøj + * @author Kasper Skaarhoj */ /** * [CLASS/FUNCTION INDEX of SCRIPT] @@ -601,7 +601,7 @@ * * @param string URL string to check * @param array Array of already indexed URLs (input url is looked up here and must not exist already) - * @param string Base URL of the indexing process (input URL must be "inside" the base URL!) + * @param string Base URL of the indexing process (input URL must be "inside" the base URL!). If the base URL is pointing to a file, the path to the file is stripped of for checking. * @return string Returls the URL if OK, otherwise false */ function checkUrl($url,$urlLog,$baseUrl) { @@ -606,6 +606,11 @@ */ function checkUrl($url,$urlLog,$baseUrl) { $url = preg_replace('/\/\/$/','/',$url); + + // just geht the root of the URL like http://www.domain.tld/ + $baseUrlArray = parse_url($baseUrl); + $baseUrl = $baseUrlArray['scheme'] . '://'. $baseUrlArray['host'] .'/'; + list($url) = explode('#',$url); if (!strstr($url,'../')) {