diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-10 10:13:59 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-10 10:13:59 +0200 |
commit | e8bc5f4450381b4f978f274f3e93604301115b64 (patch) | |
tree | f72b5395ce069aa4ef0872b7c7fb9d60faf810fb | |
parent | cf512a63b5de57763e03dc3309205843e4d62511 (diff) |
Replace in _prep_quoted_printable() with the constant 76
-rw-r--r-- | system/libraries/Email.php | 10 |
1 files changed, 1 insertions, 9 deletions
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 = ''; |