Browse Source
fix: change mime type for msg file
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/41867/head
Daniel Kesselberg
2 years ago
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
3 changed files with
4 additions and
4 deletions
-
lib/private/Repair/RepairMimeTypes.php
-
resources/config/mimetypemapping.dist.json
-
version.php
|
|
|
@ -240,7 +240,7 @@ class RepairMimeTypes implements IRepairStep { |
|
|
|
private function introduceEmlAndMsgFormatType() { |
|
|
|
$updatedMimetypes = [ |
|
|
|
'eml' => 'message/rfc822', |
|
|
|
'msg' => 'application/x-ole-storage', |
|
|
|
'msg' => 'application/vnd.ms-outlook', |
|
|
|
]; |
|
|
|
|
|
|
|
return $this->updateMimetypes($updatedMimetypes); |
|
|
|
@ -307,7 +307,7 @@ class RepairMimeTypes implements IRepairStep { |
|
|
|
$out->info('Fixed Enhanced Metafile Format mime types'); |
|
|
|
} |
|
|
|
|
|
|
|
if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.1', '<') && $this->introduceEmlAndMsgFormatType()) { |
|
|
|
if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.2', '<') && $this->introduceEmlAndMsgFormatType()) { |
|
|
|
$out->info('Fixed eml and msg mime type'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -123,7 +123,7 @@ |
|
|
|
"mpeg": ["video/mpeg"], |
|
|
|
"mpg": ["video/mpeg"], |
|
|
|
"mpo": ["image/jpeg"], |
|
|
|
"msg": ["application/x-ole-storage", "text/plain"], |
|
|
|
"msg": ["application/vnd.ms-outlook"], |
|
|
|
"msi": ["application/x-msi"], |
|
|
|
"mt2s": ["video/MP2T"], |
|
|
|
"mts": ["video/MP2T"], |
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ |
|
|
|
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patch level
|
|
|
|
// when updating major/minor version number.
|
|
|
|
|
|
|
|
$OC_Version = [29, 0, 0, 1]; |
|
|
|
$OC_Version = [29, 0, 0, 2]; |
|
|
|
|
|
|
|
// The human-readable string
|
|
|
|
$OC_VersionString = '29.0.0 dev'; |
|
|
|
|