diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair/RepairMimeTypes.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php index 86427af4c47..fbf446a681c 100644 --- a/lib/private/Repair/RepairMimeTypes.php +++ b/lib/private/Repair/RepairMimeTypes.php @@ -308,6 +308,16 @@ class RepairMimeTypes implements IRepairStep { self::updateMimetypes($updatedMimetypes); } + private function introduceWindowsProgramTypes() { + $updatedMimetypes = array( + 'htaccess' => 'text/plain', + 'bat' => 'application/x-msdos-program', + 'cmd' => 'application/cmd', + ); + + $this->updateMimetypes($updatedMimetypes); + } + /** * Fix mime types */ @@ -377,5 +387,9 @@ class RepairMimeTypes implements IRepairStep { $out->info('Fixed richdocuments additional office mime types'); } } + + if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) { + $out->info('Fixed windows program mime types'); + } } } |