summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-03 02:29:33 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-03 02:29:33 +0200
commitfdb944e7a3168204ec7138f400711591ef1d9667 (patch)
treecf0c116b4de780bdd30a2f63bf01a696f0b9ac74 /apps
parent6527048164e0b19b04c9ddbfa522d8dd9f28938e (diff)
downloadnextcloud-server-fdb944e7a3168204ec7138f400711591ef1d9667.tar.gz
nextcloud-server-fdb944e7a3168204ec7138f400711591ef1d9667.zip
send the filename header for public links
Diffstat (limited to 'apps')
-rw-r--r--apps/files_publiclink/get.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_publiclink/get.php b/apps/files_publiclink/get.php
index 49bba901854..2e1ba4bf363 100644
--- a/apps/files_publiclink/get.php
+++ b/apps/files_publiclink/get.php
@@ -66,6 +66,7 @@ if($path!==false){
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
+ header('Content-Disposition: filename="'.basename($path).'"');
header('Content-Type: ' . $mimetype);
header('Content-Length: ' . OC_Filesystem::filesize($path));