Skip to content
Snippets Groups Projects
Commit 5570222b authored by Borjan Tchakaloff's avatar Borjan Tchakaloff
Browse files

Added the missing quotes on the filename.

parent 2c95c799
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment