From 30e9c533700ef014d4c3ff513bc7dd1a2b5c2309 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 6 Aug 2008 18:35:27 +0000 Subject: added killing of nulls to _prep_quoted_printable() --- system/libraries/Email.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'system') 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) { -- cgit v1.2.3-24-g4f1b