diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-23 08:45:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-23 08:45:05 +0200 |
commit | a059b090c30f07e248ff6e29c09fc19a2fcd2a34 (patch) | |
tree | 3bf329f1227aee492171d02867f208fd23c7f36d | |
parent | 3cad0d4ed276c5676512ed290aec58b4782553f7 (diff) | |
parent | 3d2ac6dbb62252d251d2c10907f28eb3b8458836 (diff) | |
download | nextcloud-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.php | 2 |
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'); |