summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-08 17:13:54 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-08 17:13:54 +0200
commit2d847934edcf8f2ed5230926446bd543bcd81841 (patch)
tree9dc181cc71f1a1018c99932fb547fcb44978fbdb /apps
parent5de404eb926f0905fd9bae938939dbb4dadfd639 (diff)
parent312ed18d1539d925b29d92bd481842131cd6d131 (diff)
downloadnextcloud-server-2d847934edcf8f2ed5230926446bd543bcd81841.tar.gz
nextcloud-server-2d847934edcf8f2ed5230926446bd543bcd81841.zip
Merge pull request #10938 from owncloud/useSecureMimetype
Use secure mimetype for content delivery
Diffstat (limited to 'apps')
-rw-r--r--apps/files/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/download.php b/apps/files/download.php
index 6b055e99a53..664a69c5959 100644
--- a/apps/files/download.php
+++ b/apps/files/download.php
@@ -34,7 +34,7 @@ if(!\OC\Files\Filesystem::file_exists($filename)) {
exit;
}
-$ftype=\OC\Files\Filesystem::getMimeType( $filename );
+$ftype=\OC_Helper::getSecureMimeType(\OC\Files\Filesystem::getMimeType( $filename ));
header('Content-Type:'.$ftype);
OCP\Response::setContentDispositionHeader(basename($filename), 'attachment');