Added the missing quotes on the filename.

This commit is contained in:
Borjan Tchakaloff 2011-10-05 15:16:34 +04:00
parent 2c95c799e6
commit 5570222b40
1 changed files with 1 additions and 1 deletions

View File

@ -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