Commit 9aef0421 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #12107 from owncloud/dav-propfindmimetype

Return real mime type on PROPFIND
parents 1846fb02 0b2c2408
......@@ -219,6 +219,10 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
public function getContentType() {
$mimeType = $this->info->getMimetype();
// PROPFIND needs to return the correct mime type, for consistency with the web UI
return $mimeType;
return \OC_Helper::getSecureMimeType($mimeType);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment