summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Email.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index e0fa689b3..aa08971f9 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1436,8 +1436,9 @@ class CI_Email {
}
$this->_send_command('data');
-
- $this->_send_data($this->_header_str . $this->_finalbody);
+
+ // perform dot transformation on any lines that begin with a dot
+ $this->_send_data($this->_header_str . preg_replace('/^\./m', '..$1', $this->_finalbody));
$this->_send_data('.');