summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-06 15:16:21 +0200
committerJoas Schilling <coding@schilljs.com>2018-07-06 15:16:21 +0200
commit5541d3dd84f7dab0262fb597649cdbca342635d7 (patch)
tree74ba763c56fc604fd309833ff40bf37703d03025 /lib/private/Repair
parent422c805e260f3187fffe7957b2d2f637e20812e3 (diff)
downloadnextcloud-server-5541d3dd84f7dab0262fb597649cdbca342635d7.tar.gz
nextcloud-server-5541d3dd84f7dab0262fb597649cdbca342635d7.zip
Add visio mimetypes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index 2b259175623..93104ce34e1 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -162,6 +162,19 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes);
}
+ private function introduceVisioTypes() {
+ $updatedMimetypes = [
+ 'vsdm' => 'application/vnd.visio',
+ 'vsdx' => 'application/vnd.visio',
+ 'vssm' => 'application/vnd.visio',
+ 'vssx' => 'application/vnd.visio',
+ 'vstm' => 'application/vnd.visio',
+ 'vstx' => 'application/vnd.visio',
+ ];
+
+ return $this->updateMimetypes($updatedMimetypes);
+ }
+
/**
* Fix mime types
*/
@@ -191,5 +204,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.6', '<') && $this->introduceStreamingTypes()) {
$out->info('Fixed streaming mime types');
}
+
+ if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
+ $out->info('Fixed visio mime types');
+ }
}
}