summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-08-06 20:35:27 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-08-06 20:35:27 +0200
commit30e9c533700ef014d4c3ff513bc7dd1a2b5c2309 (patch)
tree0fadd2e876b77386e1c4852b2575cd2ff8013174 /system/libraries/Email.php
parent3018465a7fd25ee66d215bf881ca8b91f7b8ab62 (diff)
added killing of nulls to _prep_quoted_printable()
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index ee3d76367..b0d9f1269 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1162,7 +1162,10 @@ class CI_Email {
// Reduce multiple spaces
$str = preg_replace("| +|", " ", $str);
-
+
+ // kill nulls
+ $str = preg_replace('/\x00+/', '', $str);
+
// Standardize newlines
if (strpos($str, "\r") !== FALSE)
{