diff options
author | Florian <ente@baer.rwth-aachen.de> | 2010-12-04 11:48:17 +0100 |
---|---|---|
committer | Florian <ente@baer.rwth-aachen.de> | 2010-12-04 11:48:17 +0100 |
commit | e84acb289ef75fba3b2b75dc03b64f323e1d59ae (patch) | |
tree | 9bbde234805465c8d1cee1b2420fa721bc6bc02a /inc | |
parent | 962e548495d76dbef2c6dd26805894eff5e39cdc (diff) | |
download | nextcloud-server-e84acb289ef75fba3b2b75dc03b64f323e1d59ae.tar.gz nextcloud-server-e84acb289ef75fba3b2b75dc03b64f323e1d59ae.zip |
file download from web interface now works correctly with file names containing blanks
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/lib_files.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/lib_files.php b/inc/lib_files.php index c8c26df9726..f7d646e322a 100755 --- a/inc/lib_files.php +++ b/inc/lib_files.php @@ -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'); |