summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-12 12:03:59 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-12 12:03:59 +0200
commit0b4ed2577676ee090812b9be76e00483217a062b (patch)
tree4ab838490b25370dce3ec6a6ef4756c4396d918a /lib/files.php
parent02824cabfed9ff13501858e1bb674f027526858f (diff)
downloadnextcloud-server-0b4ed2577676ee090812b9be76e00483217a062b.tar.gz
nextcloud-server-0b4ed2577676ee090812b9be76e00483217a062b.zip
fixed downloading of files with spaces in name for Firefox
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 eec1007de1f..bdcae419189 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -121,7 +121,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');