summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/file.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index cbecd90b7d6..a9de41adf4d 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -191,7 +191,9 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
* @return mixed
*/
public function getContentType() {
- return $this->info->getMimetype();
+ $mimeType = $this->info->getMimetype();
+
+ return \OC_Helper::getSecureMimeType($mimeType);
}
/**