fixed downloading of files with spaces in name for Firefox
This commit is contained in:
parent
02824cabfe
commit
0b4ed25776
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue