aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-23 08:45:05 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-23 08:45:05 +0200
commita059b090c30f07e248ff6e29c09fc19a2fcd2a34 (patch)
tree3bf329f1227aee492171d02867f208fd23c7f36d
parent3cad0d4ed276c5676512ed290aec58b4782553f7 (diff)
parent3d2ac6dbb62252d251d2c10907f28eb3b8458836 (diff)
downloadnextcloud-server-a059b090c30f07e248ff6e29c09fc19a2fcd2a34.tar.gz
nextcloud-server-a059b090c30f07e248ff6e29c09fc19a2fcd2a34.zip
Merge pull request #17085 from owncloud/use-trusted-mimetype
Use trusted mimetype
-rw-r--r--apps/files_versions/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php
index 72018ca68b9..3cc324c2306 100644
--- a/apps/files_versions/download.php
+++ b/apps/files_versions/download.php
@@ -34,7 +34,7 @@ $versionName = '/'.$uid.'/files_versions/'.$filename.'.v'.$revision;
$view = new OC\Files\View('/');
-$ftype = $view->getMimeType('/'.$uid.'/files/'.$filename);
+$ftype = \OC_Helper::getSecureMimeType($view->getMimeType('/'.$uid.'/files/'.$filename));
header('Content-Type:'.$ftype);
OCP\Response::setContentDispositionHeader(basename($filename), 'attachment');