summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 3b4dddd00..d71f593e9 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1070,7 +1070,7 @@ class CI_Email {
$attachment[$z++] = $h;
$file = filesize($filename) +1;
- if (! $fp = fopen($filename, 'r'))
+ if (! $fp = fopen($filename, FOPEN_READ_BOF))
{
$this->_set_error_message('email_attachment_unreadable', $filename);
return FALSE;