Commit 71f73039 authored by Dries's avatar Dries

- Patch #1239376 by Dave Reid: .ogg file extension incorrectly mapped to...

- Patch #1239376 by Dave Reid: .ogg file extension incorrectly mapped to 'application/ogg' in file_default_mimetype_mapping().
parent f3b9ba74
......@@ -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,
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment