diff options
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/files.php b/lib/files.php index 534ffb9d470..755758a7ac1 100644 --- a/lib/files.php +++ b/lib/files.php @@ -111,12 +111,7 @@ class OC_Files { } OC_Util::obEnd(); if ($zip or \OC\Files\Filesystem::isReadable($filename)) { - if ( preg_match( "/MSIE/", $_SERVER["HTTP_USER_AGENT"] ) ) { - header( 'Content-Disposition: attachment; filename="' . rawurlencode($name) . '"' ); - } else { - header( 'Content-Disposition: attachment; filename*=UTF-8\'\'' . rawurlencode($name) - . '; filename="' . rawurlencode($name) . '"' ); - } + OC_Response::setContentDispositionHeader($name, 'attachment'); header('Content-Transfer-Encoding: binary'); OC_Response::disableCaching(); if ($zip) { |