summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPlamenVasilev <plamen.vasilev.vasilev@gmail.com>2013-08-05 12:49:03 +0200
committerPlamenVasilev <plamen.vasilev.vasilev@gmail.com>2013-08-05 12:49:03 +0200
commit7da60d95e077df53ed56460903eb68c20c2eba9f (patch)
treef12bbfca9ea2aa8dcf1a0825b61cd0b9b190477b
parentdc3ba214cb9d938bb9f310ceaef667af3a34002c (diff)
Suhosin compatible emails
Fix problems with Suhosin and sending emails trough php mail()
-rw-r--r--system/libraries/Email.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index d01d5c197..ebe7fe4d9 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1032,7 +1032,7 @@ class CI_Email {
if ($this->_get_protocol() == 'mail')
{
- $this->_header_str .= $hdr;
+ $this->_header_str .= rtrim($hdr);
$this->_finalbody = $this->_body;
}
else
@@ -1070,7 +1070,7 @@ class CI_Email {
if ($this->_get_protocol() == 'mail')
{
- $this->_header_str .= $hdr;
+ $this->_header_str .= rtrim($hdr);
}
else
{
@@ -1092,7 +1092,7 @@ class CI_Email {
if ($this->_get_protocol() == 'mail')
{
- $this->_header_str .= $hdr;
+ $this->_header_str .= rtrim($hdr);
}
$body .= $this->_get_mime_message() . $this->newline . $this->newline;
@@ -1110,7 +1110,7 @@ class CI_Email {
if ($this->_get_protocol() == 'mail')
{
- $this->_header_str .= $hdr;
+ $this->_header_str .= rtrim($hdr);
}
$body .= $this->_get_mime_message() . $this->newline . $this->newline;