all MDL-20821 Removed ereg related deprecated functions
This commit is contained in:
+1
-1
@@ -496,7 +496,7 @@ function mimeinfo($element, $filename) {
|
||||
$mimeinfo = get_mimetypes_array();
|
||||
}
|
||||
|
||||
if (eregi('\.([a-z0-9]+)$', $filename, $match)) {
|
||||
if (preg_match('/\.([a-z0-9]+)$/i', $filename, $match)) {
|
||||
if (isset($mimeinfo[strtolower($match[1])][$element])) {
|
||||
return $mimeinfo[strtolower($match[1])][$element];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user