Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_parsehtml.php
index 8446ba4..566c663 100644 (file)
@@ -1028,7 +1028,7 @@ class t3lib_parsehtml     {
                        $parts = $this->splitIntoBlock('style',$content);
                        foreach($parts as $k => $v)     {
                                if ($k%2)       {
-                                       $parts[$k] = eregi_replace('(url[[:space:]]*\([[:space:]]*["\']?)([^"\')]*)(["\']?[[:space:]]*\))','\1'.$prefix.'\2'.$suffix.'\3',$parts[$k]);
+                                       $parts[$k] = preg_replace('/(url[[:space:]]*\([[:space:]]*["\']?)([^"\')]*)(["\']?[[:space:]]*\))/i','\1'.$prefix.'\2'.$suffix.'\3',$parts[$k]);
                                }
                        }
                        $content = implode('',$parts);