commit | 7cf682abf46bcaa112b63c500a884ba25c0dd8b3 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Mar 13 14:55:45 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Thu Mar 13 14:55:45 2014 +0200 |
tree | ec4283976055d986add2da7b0dad16c1e75dcba5 | |
parent | d2e3a6fbf820b819bd7b2abc4794766f4c1d4e1a [diff] [blame] |
Partially revert PR #2190 The core shouldn't depend on constants that are not defined by itself
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index fac8a49..1f2f6a9 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php
@@ -732,7 +732,7 @@ return FALSE; } - if ( ! $fp = @fopen($file, FOPEN_READ)) + if ( ! $fp = @fopen($file, 'rb')) { $this->_set_error_message('lang:email_attachment_unreadable', $file); return FALSE;