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

This commit is contained in:
Florian 2010-12-04 11:48:17 +01:00
parent 962e548495
commit e84acb289e
1 changed files with 1 additions and 1 deletions

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');