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
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 6ced2c5..ee3d763 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1196,7 +1196,7 @@
 				// 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