diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2017-06-15 13:23:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 13:23:32 +0200 |
commit | 8ccc2e27586d4c77dd68f8e5fcf696d39af012a2 (patch) | |
tree | fed1a6309b857bc196be7ebf55b6c1cd025b6788 /lib | |
parent | ca3c69c8ae0fd7f0d13e87d7861c54e2950a2c09 (diff) | |
parent | 0f92a2c6fdce9130433d54f62725abfc6d692e9d (diff) | |
download | nextcloud-server-8ccc2e27586d4c77dd68f8e5fcf696d39af012a2.tar.gz nextcloud-server-8ccc2e27586d4c77dd68f8e5fcf696d39af012a2.zip |
Merge pull request #5396 from nextcloud/gpx-mimetype
add gpx mimetype
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair/RepairMimeTypes.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php index d60b507e932..0bf35c1d2ae 100644 --- a/lib/private/Repair/RepairMimeTypes.php +++ b/lib/private/Repair/RepairMimeTypes.php @@ -129,6 +129,17 @@ class RepairMimeTypes implements IRepairStep { $this->updateMimetypes($updatedMimetypes); } + private function introduceLocationTypes() { + $updatedMimetypes = [ + 'gpx' => 'application/gpx+xml', + 'kml' => 'application/vnd.google-earth.kml+xml', + 'kmz' => 'application/vnd.google-earth.kmz', + 'tcx' => 'application/vnd.garmin.tcx+xml', + ]; + + $this->updateMimetypes($updatedMimetypes); + } + /** * Fix mime types */ @@ -146,5 +157,9 @@ class RepairMimeTypes implements IRepairStep { if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) { $out->info('Fixed windows program mime types'); } + + if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.0', '<') && $this->introduceLocationTypes()) { + $out->info('Fixed geospatial mime types'); + } } } |