Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5183049

Browse filesBrowse files
committed
updated MimeType extensions
1 parent facbaa5 commit 5183049
Copy full SHA for 5183049

File tree

Expand file treeCollapse file tree

1 file changed

+14
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-9
lines changed

‎src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeExtensionGuesser.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeExtensionGuesser.php
+14-9Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
2020
* A map of mime types and their default extensions.
2121
*
2222
* This list has been placed under the public domain by the Apache HTTPD project.
23-
* This list has been updated from upstream on 2013-04-23.
23+
* This list has been updated from upstream on 2019-01-14.
2424
*
25-
* @see http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
25+
* @see https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
2626
*/
27-
protected $defaultExtensions = array(
27+
protected $defaultExtensions = [
2828
'application/andrew-inset' => 'ez',
2929
'application/applixware' => 'aw',
3030
'application/atom+xml' => 'atom',
@@ -618,7 +618,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
618618
'audio/adpcm' => 'adp',
619619
'audio/basic' => 'au',
620620
'audio/midi' => 'mid',
621-
'audio/mp4' => 'mp4a',
621+
'audio/mp4' => 'm4a',
622622
'audio/mpeg' => 'mpga',
623623
'audio/ogg' => 'oga',
624624
'audio/s3m' => 's3m',
@@ -653,6 +653,11 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
653653
'chemical/x-cml' => 'cml',
654654
'chemical/x-csml' => 'csml',
655655
'chemical/x-xyz' => 'xyz',
656+
'font/collection' => 'ttc',
657+
'font/otf' => 'otf',
658+
'font/ttf' => 'ttf',
659+
'font/woff' => 'woff',
660+
'font/woff2' => 'woff2',
656661
'image/bmp' => 'bmp',
657662
'image/x-ms-bmp' => 'bmp',
658663
'image/cgm' => 'cgm',
@@ -669,8 +674,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
669674
'image/tiff' => 'tiff',
670675
'image/vnd.adobe.photoshop' => 'psd',
671676
'image/vnd.dece.graphic' => 'uvi',
672-
'image/vnd.dvb.subtitle' => 'sub',
673677
'image/vnd.djvu' => 'djvu',
678+
'image/vnd.dvb.subtitle' => 'sub',
674679
'image/vnd.dwg' => 'dwg',
675680
'image/vnd.dxf' => 'dxf',
676681
'image/vnd.fastbidsheet' => 'fbs',
@@ -732,8 +737,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
732737
'text/vcard' => 'vcard',
733738
'text/vnd.curl' => 'curl',
734739
'text/vnd.curl.dcurl' => 'dcurl',
735-
'text/vnd.curl.scurl' => 'scurl',
736740
'text/vnd.curl.mcurl' => 'mcurl',
741+
'text/vnd.curl.scurl' => 'scurl',
737742
'text/vnd.dvb.subtitle' => 'sub',
738743
'text/vnd.fly' => 'fly',
739744
'text/vnd.fmi.flexstor' => 'flx',
@@ -747,10 +752,10 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
747752
'text/x-asm' => 's',
748753
'text/x-c' => 'c',
749754
'text/x-fortran' => 'f',
750-
'text/x-pascal' => 'p',
751755
'text/x-java-source' => 'java',
752-
'text/x-opml' => 'opml',
753756
'text/x-nfo' => 'nfo',
757+
'text/x-opml' => 'opml',
758+
'text/x-pascal' => 'p',
754759
'text/x-setext' => 'etx',
755760
'text/x-sfv' => 'sfv',
756761
'text/x-uuencode' => 'uu',
@@ -796,7 +801,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
796801
'video/x-sgi-movie' => 'movie',
797802
'video/x-smv' => 'smv',
798803
'x-conference/x-cooltalk' => 'ice',
799-
);
804+
];
800805

801806
/**
802807
* {@inheritdoc}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.