Avoid Safari to append .html at the end of downloaded files
This commit is contained in:
parent
83e4c7729e
commit
37ef906998
|
|
@ -31,6 +31,7 @@ Bug fixes:
|
|||
* Add missing template for activity stream to show event "file.create"
|
||||
* Fix wrong value for PLUGINS_DIR in config.default.php
|
||||
* Make CSV export compatible with PHP 5.3
|
||||
* Avoid Safari to append .html at the end of downloaded files
|
||||
|
||||
Version 1.0.20
|
||||
--------------
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ class Response extends Base
|
|||
public function forceDownload($filename)
|
||||
{
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Type: application/octet-stream');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue