summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-08 10:27:02 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-08 10:27:02 -0400
commitf6df71b74d556b086bc5c05c141267cd02d93d2f (patch)
treedde8f9a8770fde51ace5e8b6207a751a60c03eaa /apps
parent9dee2a6b2cd478e28b86d874c28314ea87a97086 (diff)
downloadnextcloud-server-f6df71b74d556b086bc5c05c141267cd02d93d2f.tar.gz
nextcloud-server-f6df71b74d556b086bc5c05c141267cd02d93d2f.zip
Set Content-Disposition to attachment for shared private links
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_sharing/get.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index 59a4efba6a6..caf25d00cfd 100755
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -68,7 +68,7 @@ if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) {
$mimetype = OC_Filesystem::getMimeType($source);
header("Content-Transfer-Encoding: binary");
OCP\Response::disableCaching();
- header('Content-Disposition: filename="'.basename($source).'"');
+ header('Content-Disposition: attachment; filename="'.basename($source).'"');
header("Content-Type: " . $mimetype);
header("Content-Length: " . OC_Filesystem::filesize($source));
//download the file