summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-18 15:39:29 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-18 15:39:29 +0200
commit235b647fe11ec50e86675de4647cfc212d87b58a (patch)
tree7e5e203bb4cfe7fe5da511faa85649ce4df03671 /lib/files.php
parent0f49d57d2783c79340ecb33d4a7aab0fdcfc628e (diff)
downloadnextcloud-server-235b647fe11ec50e86675de4647cfc212d87b58a.tar.gz
nextcloud-server-235b647fe11ec50e86675de4647cfc212d87b58a.zip
send proper headers
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php
index 1c00044fa90..d0521168428 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -133,7 +133,7 @@ class OC_FILES {
$filename=$dir.'/'.$files;
}
if($zip or OC_FILESYSTEM::is_readable($filename)){
- header('Content-Disposition: attachment; filename="'.basename($filename).'"');
+ header('Content-Disposition: attachment; filename='.basename($filename));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');