- Patch #1239376 by Dave Reid: .ogg file extension incorrectly mapped to 'application/ogg' in file_default_mimetype_mapping().

8.0.x
Dries Buytaert 2011-08-07 13:50:46 -04:00
parent f3b9ba74cf
commit 71f7303914
2 changed files with 3 additions and 1 deletions

View File

@ -407,7 +407,6 @@ function file_default_mimetype_mapping() {
'doc' => 14,
'bin' => 15,
'oda' => 16,
'ogg' => 17,
'ogx' => 17,
'pdf' => 18,
'key' => 19,
@ -629,6 +628,7 @@ function file_default_mimetype_mapping() {
'm4a' => 188,
'mp3' => 188,
'mp2' => 188,
'ogg' => 189,
'oga' => 189,
'spx' => 189,
'sid' => 190,

View File

@ -2618,6 +2618,7 @@ class FileMimeTypeTest extends DrupalWebTestCase {
'foo.file_test_1' => 'madeup/file_test_1',
'foo.file_test_2' => 'madeup/file_test_2',
'foo.doc' => 'madeup/doc',
'test.ogg' => 'audio/ogg',
);
// Test using default mappings.
@ -2656,6 +2657,7 @@ class FileMimeTypeTest extends DrupalWebTestCase {
'foo.file_test_1' => 'application/octet-stream',
'foo.file_test_2' => 'application/octet-stream',
'foo.doc' => 'application/octet-stream',
'test.ogg' => 'application/octet-stream',
);
foreach ($test_case as $input => $expected) {