Browse Source

file download from web interface now works correctly with file names containing blanks

tags/v3.0
Florian 13 years ago
parent
commit
e84acb289e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      inc/lib_files.php

+ 1
- 1
inc/lib_files.php View File

@@ -131,7 +131,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…
Cancel
Save