fix: change mime type for msg file

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2023-11-29 12:27:55 +01:00
parent 6e3781b486
commit 9f76600c88
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
3 changed files with 4 additions and 4 deletions

View File

@ -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');
}
}

View File

@ -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"],

View File

@ -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';