From e8bc5f4450381b4f978f274f3e93604301115b64 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 10 Oct 2012 11:13:59 +0300 Subject: Replace in _prep_quoted_printable() with the constant 76 --- system/libraries/Email.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'system/libraries') diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 36ecc347d..1b457aee4 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1112,14 +1112,6 @@ class CI_Email { return quoted_printable_encode($str); } - // Set the character limit - // Don't allow over 76, as that will make servers and MUAs barf - // all over quoted-printable data - if ($charlim === '' OR $charlim > 76) - { - $charlim = 76; - } - // Reduce multiple spaces & remove nulls $str = preg_replace(array('| +|', '/\x00+/'), array(' ', ''), $str); @@ -1162,7 +1154,7 @@ class CI_Email { // If we're at the character limit, add the line to the output, // reset our temp variable, and keep on chuggin' - if ((strlen($temp) + strlen($char)) >= $charlim) + if ((strlen($temp) + strlen($char)) >= 76) { $output .= $temp.$escape.$this->crlf; $temp = ''; -- cgit v1.2.3-24-g4f1b