summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorBruno Barão <brunobarao@gmail.com>2012-10-08 17:31:46 +0200
committerBruno Barão <brunobarao@gmail.com>2012-10-08 17:31:46 +0200
commit51f72cda43e4f7aa9cafbf31181e67c31936a0bd (patch)
tree8e7121bb64374f37c1edb304284369ab764e867f /system
parent02561acf13f19881f4e3f95cf2fb423665d5ce8b (diff)
Fix email headers when using long email subjects and \r\n as crlf. (Part2)
- Better expression for the preg_replace. - Added a entry to the changelog.
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Email.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 507067f42..4adf9430f 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1237,7 +1237,7 @@ class CI_Email {
// wrap each line with the shebang, charset, and transfer encoding
// the preceding space on successive lines is required for header "folding"
- return trim(preg_replace('/^(.*?)(\n|\r)*$/m', ' =?'.$this->charset.'?Q?$1?=$2', $output.$temp));
+ return trim(preg_replace('/^(.*?)(\r*)$/m', ' =?'.$this->charset.'?Q?$1?=$2', $output.$temp));
}
// --------------------------------------------------------------------
@@ -1861,4 +1861,4 @@ class CI_Email {
}
/* End of file Email.php */
-/* Location: ./system/libraries/Email.php */ \ No newline at end of file
+/* Location: ./system/libraries/Email.php */