Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / dbint / index.php
index 8cd6927..6b9e680 100755 (executable)
@@ -650,7 +650,7 @@ class SC_mod_tools_dbint_index {
                if (is_array($files))   {
                        $files_searched+=count($files);
                        foreach ($files as $value) {
-                               if (eregi($pattern,basename($value)))   $matching_files[]=substr($value,strlen(PATH_site));
+                               if (preg_match('/'.$pattern.'/i',basename($value)))     $matching_files[]=substr($value,strlen(PATH_site));
                        }
                }