From: Borjan Tchakaloff Date: Wed, 5 Oct 2011 11:16:34 +0000 (+0400) Subject: Added the missing quotes on the filename. X-Git-Tag: v3.0~101^2~2^2~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5570222b40194e6ef3a82857718dee2577818f79;p=nextcloud-server.git Added the missing quotes on the filename. --- diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php index 083f48e1127..7d040689d41 100644 --- a/apps/files_sharing/get.php +++ b/apps/files_sharing/get.php @@ -70,7 +70,7 @@ if ($source !== false) { header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: public"); - header("Content-Disposition: filename=".basename($source)); + header('Content-Disposition: filename="'.basename($source).'"'); header("Content-Type: " . $mimetype); header("Content-Length: " . OC_Filesystem::filesize($source)); //download the file