From 0b4ed2577676ee090812b9be76e00483217a062b Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 12 Aug 2011 12:03:59 +0200 Subject: [PATCH] fixed downloading of files with spaces in name for Firefox --- lib/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files.php b/lib/files.php index eec1007de1..bdcae41918 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');