From 1d89088e2bbab32e80bd9fe0d74d5df32ab1e3ac Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 10 Feb 2009 20:32:14 +0000 Subject: 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/ --- system/libraries/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries') 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); } } -- cgit v1.2.3-24-g4f1b