summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorMehdi Bounya <5004111+mehdibo@users.noreply.github.com>2018-02-07 19:48:17 +0100
committerGitHub <noreply@github.com>2018-02-07 19:48:17 +0100
commitd4fbb65b9a5c75b00ad8374021c72eb6ff4a58df (patch)
tree90137d63349b13d0c0bbdb8b9e304706370f1105 /system
parent10cc80e9f35aac497fe5b60b3e409a213a5a5291 (diff)
Changing file name in image lib dynamic output
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Image_lib.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php
index b5e86f8a7..0c36f740c 100644
--- a/system/libraries/Image_lib.php
+++ b/system/libraries/Image_lib.php
@@ -1548,8 +1548,7 @@ class CI_Image_lib {
*/
public function image_display_gd($resource)
{
- $filename = basename(empty($this->new_image) ? $this->source_image : $this->new_image);
- header('Content-Disposition: filename='.$filename.'; filename*=UTF-8\'\''.rawurlencode(iconv(config_item('charset'), 'UTF-8', $filename)));
+ header('Content-Disposition: filename='.basename(empty($this->new_image) ? $this->source_image : $this->new_image).';');
header('Content-Type: '.$this->mime_type);
header('Content-Transfer-Encoding: binary');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT');