diff options
author | Derek Jones <derek.jones@ellislab.com> | 2011-08-20 15:59:15 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2011-08-20 15:59:15 +0200 |
commit | d9489e0ca676905c16c7a8c0f03011cc12b634f9 (patch) | |
tree | 809872634daf234591fabacbca8df2203d35b509 /system/libraries/Email.php | |
parent | abccc2fa65eea5f64773952661a8ba79e559333b (diff) | |
parent | b8c038a3e7742f32915d7f1ab69627075e8d0c39 (diff) |
Merge branch 'release/v2.0.3'
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index cd89f8f3d..03eccea09 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -395,7 +395,7 @@ class CI_Email { public function attach($filename, $disposition = 'attachment') { $this->_attach_name[] = $filename; - $this->_attach_type[] = $this->_mime_types(next(explode('.', basename($filename)))); + $this->_attach_type[] = $this->_mime_types(pathinfo($filename, PATHINFO_EXTENSION)); $this->_attach_disp[] = $disposition; // Can also be 'inline' Not sure if it matters return $this; } |