Add visio mimetypes

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-07-06 15:16:21 +02:00
parent 422c805e26
commit 5541d3dd84
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
4 changed files with 30 additions and 1 deletions

View File

@ -162,6 +162,19 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes); 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 * Fix mime types
*/ */
@ -191,5 +204,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.6', '<') && $this->introduceStreamingTypes()) { if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.6', '<') && $this->introduceStreamingTypes()) {
$out->info('Fixed streaming mime types'); $out->info('Fixed streaming mime types');
} }
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
$out->info('Fixed visio mime types');
}
} }
} }

View File

@ -40,6 +40,12 @@
"application/vnd.ms-powerpoint.presentation.macroEnabled.12": "x-office/presentation", "application/vnd.ms-powerpoint.presentation.macroEnabled.12": "x-office/presentation",
"application/vnd.ms-powerpoint.slideshow.macroEnabled.12": "x-office/presentation", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12": "x-office/presentation",
"application/vnd.ms-powerpoint.template.macroEnabled.12": "x-office/presentation", "application/vnd.ms-powerpoint.template.macroEnabled.12": "x-office/presentation",
"application/vnd.ms-visio.drawing.macroEnabled.12": "application/vnd.visio",
"application/vnd.ms-visio.drawing": "application/vnd.visio",
"application/vnd.ms-visio.stencil.macroEnabled.12": "application/vnd.visio",
"application/vnd.ms-visio.stencil": "application/vnd.visio",
"application/vnd.ms-visio.template.macroEnabled.12": "application/vnd.visio",
"application/vnd.ms-visio.template": "application/vnd.visio",
"application/vnd.ms-word.document.macroEnabled.12": "x-office/document", "application/vnd.ms-word.document.macroEnabled.12": "x-office/document",
"application/vnd.ms-word.template.macroEnabled.12": "x-office/document", "application/vnd.ms-word.template.macroEnabled.12": "x-office/document",
"application/vnd.oasis.opendocument.presentation": "x-office/presentation", "application/vnd.oasis.opendocument.presentation": "x-office/presentation",

View File

@ -176,6 +176,12 @@
"vcf": ["text/vcard"], "vcf": ["text/vcard"],
"vob": ["video/dvd"], "vob": ["video/dvd"],
"vsd": ["application/vnd.visio"], "vsd": ["application/vnd.visio"],
"vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"],
"vsdx": ["application/vnd.ms-visio.drawing"],
"vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"],
"vssx": ["application/vnd.ms-visio.stencil"],
"vstm": ["application/vnd.ms-visio.template.macroEnabled.12"],
"vstx": ["application/vnd.ms-visio.template"],
"wav": ["audio/wav"], "wav": ["audio/wav"],
"webm": ["video/webm"], "webm": ["video/webm"],
"webp": ["image/webp"], "webp": ["image/webp"],

View File

@ -29,7 +29,7 @@
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel // between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number. // when updating major/minor version number.
$OC_Version = array(14, 0, 0, 7); $OC_Version = array(14, 0, 0, 8);
// The human readable string // The human readable string
$OC_VersionString = '14.0.0 alpha'; $OC_VersionString = '14.0.0 alpha';