Skip to content
Snippets Groups Projects
Commit 0b4ed257 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

fixed downloading of files with spaces in name for Firefox

parent 02824cab
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
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