aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-11-28 17:12:21 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-11-28 17:12:21 +0100
commitdea865d24737b00ed17854513138faa5d8acbdbb (patch)
tree008b3ae4958c18b7e3ab2dc1c3312e2a3d15ed3a /lib
parent3365c87dd4a0d769c0451c5fb07b1c18402b5e6c (diff)
downloadnextcloud-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.php13
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');
+ }
}
}