From 3018465a7fd25ee66d215bf881ca8b91f7b8ab62 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 6 Aug 2008 18:31:54 +0000 Subject: fixed bug where dechex() was being fed the wrong variable for encoding space and tab characters at the end of a line of quoted-printable encoded content --- system/libraries/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Email.php') diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 6ced2c5c8..ee3d76367 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1196,7 +1196,7 @@ class CI_Email { // Convert spaces and tabs but only if it's the end of the line if ($i == ($length - 1)) { - $char = ($ascii == '32' OR $ascii == '9') ? $escape.sprintf('%02s', dechex($char)) : $char; + $char = ($ascii == '32' OR $ascii == '9') ? $escape.sprintf('%02s', dechex($ascii)) : $char; } // encode = signs -- cgit v1.2.3-24-g4f1b