diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-11-28 17:12:21 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-11-28 17:12:21 +0100 |
commit | dea865d24737b00ed17854513138faa5d8acbdbb (patch) | |
tree | 008b3ae4958c18b7e3ab2dc1c3312e2a3d15ed3a /lib | |
parent | 3365c87dd4a0d769c0451c5fb07b1c18402b5e6c (diff) | |
download | nextcloud-server-dea865d24737b00ed17854513138faa5d8acbdbb.tar.gz nextcloud-server-dea865d24737b00ed17854513138faa5d8acbdbb.zip |
fix: add mimetype for eml and msg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair/RepairMimeTypes.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php index f951c3b916d..0d9e744b213 100644 --- a/lib/private/Repair/RepairMimeTypes.php +++ b/lib/private/Repair/RepairMimeTypes.php @@ -237,6 +237,15 @@ class RepairMimeTypes implements IRepairStep { return $this->updateMimetypes($updatedMimetypes); } + private function introduceEmlAndMsgFormatType() { + $updatedMimetypes = [ + 'eml' => 'message/rfc822', + 'msg' => 'application/x-ole-storage', + ]; + + return $this->updateMimetypes($updatedMimetypes); + } + /** * Fix mime types */ @@ -297,5 +306,9 @@ class RepairMimeTypes implements IRepairStep { if (version_compare($ocVersionFromBeforeUpdate, '28.0.0.5', '<') && $this->introduceEnhancedMetafileFormatType()) { $out->info('Fixed Enhanced Metafile Format mime types'); } + + if (version_compare($ocVersionFromBeforeUpdate, '29.0.0.1', '<') && $this->introduceEmlAndMsgFormatType()) { + $out->info('Fixed eml and msg mime type'); + } } } |