diff options
-rw-r--r-- | lib/private/Repair/RepairMimeTypes.php | 5 | ||||
-rw-r--r-- | resources/config/mimetypealiases.dist.json | 3 | ||||
-rw-r--r-- | resources/config/mimetypemapping.dist.json | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php index c384241b5ff..0bf35c1d2ae 100644 --- a/lib/private/Repair/RepairMimeTypes.php +++ b/lib/private/Repair/RepairMimeTypes.php @@ -131,7 +131,10 @@ class RepairMimeTypes implements IRepairStep { private function introduceLocationTypes() { $updatedMimetypes = [ - 'gpx' => 'application/gpx+xml' + '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); diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json index fef62ebebdb..daf75453dc8 100644 --- a/resources/config/mimetypealiases.dist.json +++ b/resources/config/mimetypealiases.dist.json @@ -26,6 +26,9 @@ "application/rss+xml": "application/xml", "application/vnd.android.package-archive": "package/x-generic", "application/vnd.lotus-wordpro": "x-office/document", + "application/vnd.garmin.tcx+xml": "location", + "application/vnd.google-earth.kml+xml": "location", + "application/vnd.google-earth.kmz": "location", "application/vnd.ms-excel": "x-office/spreadsheet", "application/vnd.ms-excel.addin.macroEnabled.12": "x-office/spreadsheet", "application/vnd.ms-excel.sheet.binary.macroEnabled.12": "x-office/spreadsheet", diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json index e06631a9ad8..ae90a138a42 100644 --- a/resources/config/mimetypemapping.dist.json +++ b/resources/config/mimetypemapping.dist.json @@ -82,6 +82,8 @@ "kdc": ["image/x-dcraw"], "key": ["application/x-iwork-keynote-sffkey"], "keynote": ["application/x-iwork-keynote-sffkey"], + "kml": ["application/vnd.google-earth.kml+xml"], + "kmz": ["application/vnd.google-earth.kmz"], "kra": ["application/x-krita"], "ldif": ["text/x-ldif"], "lwp": ["application/vnd.lotus-wordpro"], @@ -160,6 +162,7 @@ "tar.bz2": ["application/x-bzip2"], "tar.gz": ["application/x-compressed"], "tbz2": ["application/x-bzip2"], + "tcx": ["application/vnd.garmin.tcx+xml"], "tex": ["application/x-tex"], "tgz": ["application/x-compressed"], "tiff": ["image/tiff"], |