summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector/sabre/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/connector/sabre/file.php')
-rw-r--r--apps/dav/lib/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/connector/sabre/file.php b/apps/dav/lib/connector/sabre/file.php
index c66f627c0a3..6a0a39d04e7 100644
--- a/apps/dav/lib/connector/sabre/file.php
+++ b/apps/dav/lib/connector/sabre/file.php
@@ -329,7 +329,7 @@ class File extends Node implements IFile {
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PROPFIND') {
return $mimeType;
}
- return \OC_Helper::getSecureMimeType($mimeType);
+ return \OC::$server->getMimeTypeDetector()->getSecureMimeType($mimeType);
}
/**