Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: change mime type for msg file
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Nov 29, 2023
commit 9f76600c884cd2461620d8b82be2f5d959dc6292
4 changes: 2 additions & 2 deletions lib/private/Repair/RepairMimeTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private function introduceEnhancedMetafileFormatType() {
private function introduceEmlAndMsgFormatType() {
$updatedMimetypes = [
'eml' => 'message/rfc822',
'msg' => 'application/x-ole-storage',
'msg' => 'application/vnd.ms-outlook',
];

return $this->updateMimetypes($updatedMimetypes);
Expand Down Expand Up @@ -307,7 +307,7 @@ public function run(IOutput $out) {
$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');
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/config/mimetypemapping.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down