summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-10 21:32:14 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-10 21:32:14 +0100
commit1d89088e2bbab32e80bd9fe0d74d5df32ab1e3ac (patch)
tree928808131b17c08537073b2aaa5108a8a58d367e /system
parenta04cfa77a3b113e5a9d858466bc9ae9f674081fb (diff)
switched from substr() to rtrim() in _write_headers() so that the last $this->newline is fully stripped when the "mail" protocol is used, regardless of whether \r, \n, or \r\n is used.
http://codeigniter.com/bug_tracker/bug/6669/
Diffstat (limited to 'system')
-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 7539fe54a..f863d4161 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -956,7 +956,7 @@ class CI_Email {
if ($this->_get_protocol() == 'mail')
{
- $this->_header_str = substr($this->_header_str, 0, -1);
+ $this->_header_str = rtrim($this->_header_str);
}
}