mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Use File::get_file_extension for fallback mime-type detection
This commit is contained in:
parent
ea8eb7bad4
commit
7d9cf5b365
@ -211,7 +211,7 @@ class HTTP {
|
||||
|
||||
// Fallback to use the list from the HTTP.yml configuration and rely on the file extension
|
||||
// to get the file mime-type
|
||||
$ext = substr(strrchr($filename, '.'), 1);
|
||||
$ext = File::get_file_extension($filename);
|
||||
// Get the mime-types
|
||||
$mimeTypes = Config::inst()->get('HTTP', 'MimeTypes');
|
||||
// The mime type doesn't exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user