Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / class.crawler.php
index 66971a1..e72da76 100755 (executable)
@@ -578,7 +578,7 @@ class tx_indexedsearch_crawler {
         * @return      string          Returls the URL if OK, otherwise false
         */
        function checkUrl($url,$urlLog,$baseUrl)        {
-               $url = ereg_replace('\/\/$','/',$url);
+               $url = preg_replace('/\/\/$/','/',$url);
                list($url) = explode('#',$url);
 
                if (!strstr($url,'../'))        {