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 70e32b4

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

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+14
-18
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-18Lines changed: 14 additions & 18 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',
@@ -528,12 +528,9 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
528528
'application/x-font-bdf' => 'bdf',
529529
'application/x-font-ghostscript' => 'gsf',
530530
'application/x-font-linux-psf' => 'psf',
531-
'application/x-font-otf' => 'otf',
532531
'application/x-font-pcf' => 'pcf',
533532
'application/x-font-snf' => 'snf',
534-
'application/x-font-ttf' => 'ttf',
535533
'application/x-font-type1' => 'pfa',
536-
'application/x-font-woff' => 'woff',
537534
'application/x-freearc' => 'arc',
538535
'application/x-futuresplash' => 'spl',
539536
'application/x-gca-compressed' => 'gca',
@@ -572,7 +569,6 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
572569
'application/x-pkcs7-certificates' => 'p7b',
573570
'application/x-pkcs7-certreqresp' => 'p7r',
574571
'application/x-rar-compressed' => 'rar',
575-
'application/x-rar' => 'rar',
576572
'application/x-research-info-systems' => 'ris',
577573
'application/x-sh' => 'sh',
578574
'application/x-shar' => 'shar',
@@ -599,7 +595,6 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
599595
'application/x-xliff+xml' => 'xlf',
600596
'application/x-xpinstall' => 'xpi',
601597
'application/x-xz' => 'xz',
602-
'application/x-zip-compressed' => 'zip',
603598
'application/x-zmachine' => 'z1',
604599
'application/xaml+xml' => 'xaml',
605600
'application/xcap-diff+xml' => 'xdf',
@@ -618,7 +613,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
618613
'audio/adpcm' => 'adp',
619614
'audio/basic' => 'au',
620615
'audio/midi' => 'mid',
621-
'audio/mp4' => 'mp4a',
616+
'audio/mp4' => 'm4a',
622617
'audio/mpeg' => 'mpga',
623618
'audio/ogg' => 'oga',
624619
'audio/s3m' => 's3m',
@@ -653,14 +648,17 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
653648
'chemical/x-cml' => 'cml',
654649
'chemical/x-csml' => 'csml',
655650
'chemical/x-xyz' => 'xyz',
651+
'font/collection' => 'ttc',
652+
'font/otf' => 'otf',
653+
'font/ttf' => 'ttf',
654+
'font/woff' => 'woff',
655+
'font/woff2' => 'woff2',
656656
'image/bmp' => 'bmp',
657-
'image/x-ms-bmp' => 'bmp',
658657
'image/cgm' => 'cgm',
659658
'image/g3fax' => 'g3',
660659
'image/gif' => 'gif',
661660
'image/ief' => 'ief',
662661
'image/jpeg' => 'jpeg',
663-
'image/pjpeg' => 'jpeg',
664662
'image/ktx' => 'ktx',
665663
'image/png' => 'png',
666664
'image/prs.btif' => 'btif',
@@ -669,8 +667,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
669667
'image/tiff' => 'tiff',
670668
'image/vnd.adobe.photoshop' => 'psd',
671669
'image/vnd.dece.graphic' => 'uvi',
672-
'image/vnd.dvb.subtitle' => 'sub',
673670
'image/vnd.djvu' => 'djvu',
671+
'image/vnd.dvb.subtitle' => 'sub',
674672
'image/vnd.dwg' => 'dwg',
675673
'image/vnd.dxf' => 'dxf',
676674
'image/vnd.fastbidsheet' => 'fbs',
@@ -723,7 +721,6 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
723721
'text/plain' => 'txt',
724722
'text/prs.lines.tag' => 'dsc',
725723
'text/richtext' => 'rtx',
726-
'text/rtf' => 'rtf',
727724
'text/sgml' => 'sgml',
728725
'text/tab-separated-values' => 'tsv',
729726
'text/troff' => 't',
@@ -732,8 +729,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
732729
'text/vcard' => 'vcard',
733730
'text/vnd.curl' => 'curl',
734731
'text/vnd.curl.dcurl' => 'dcurl',
735-
'text/vnd.curl.scurl' => 'scurl',
736732
'text/vnd.curl.mcurl' => 'mcurl',
733+
'text/vnd.curl.scurl' => 'scurl',
737734
'text/vnd.dvb.subtitle' => 'sub',
738735
'text/vnd.fly' => 'fly',
739736
'text/vnd.fmi.flexstor' => 'flx',
@@ -743,14 +740,13 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
743740
'text/vnd.sun.j2me.app-descriptor' => 'jad',
744741
'text/vnd.wap.wml' => 'wml',
745742
'text/vnd.wap.wmlscript' => 'wmls',
746-
'text/vtt' => 'vtt',
747743
'text/x-asm' => 's',
748744
'text/x-c' => 'c',
749745
'text/x-fortran' => 'f',
750-
'text/x-pascal' => 'p',
751746
'text/x-java-source' => 'java',
752-
'text/x-opml' => 'opml',
753747
'text/x-nfo' => 'nfo',
748+
'text/x-opml' => 'opml',
749+
'text/x-pascal' => 'p',
754750
'text/x-setext' => 'etx',
755751
'text/x-sfv' => 'sfv',
756752
'text/x-uuencode' => 'uu',
@@ -796,7 +792,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
796792
'video/x-sgi-movie' => 'movie',
797793
'video/x-smv' => 'smv',
798794
'x-conference/x-cooltalk' => 'ice',
799-
);
795+
];
800796

801797
/**
802798
* {@inheritdoc}

0 commit comments

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