diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-08-06 20:35:27 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-08-06 20:35:27 +0200 |
commit | 30e9c533700ef014d4c3ff513bc7dd1a2b5c2309 (patch) | |
tree | 0fadd2e876b77386e1c4852b2575cd2ff8013174 /system/libraries | |
parent | 3018465a7fd25ee66d215bf881ca8b91f7b8ab62 (diff) |
added killing of nulls to _prep_quoted_printable()
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Email.php | 5 |
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)
{
|