diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-08-06 20:31:54 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-08-06 20:31:54 +0200 |
commit | 3018465a7fd25ee66d215bf881ca8b91f7b8ab62 (patch) | |
tree | 9757d47be6adf184c594f9f65298df46d0923f50 | |
parent | e3b8749f766e09ff55ad047b33c047149c9e249c (diff) |
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
-rw-r--r-- | system/libraries/Email.php | 2 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 2 insertions, 1 deletions
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
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 3aaf7292d..e0e2bef36 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -82,6 +82,7 @@ SVN Revision: XXXX</p> <li>Fixed bug in xss_clean() that could remove some desirable tag attributes.</li>
<li>Fixed assorted user guide typos or examples (#4840, #4862, #4864, #4899, #4930).</li>
<li>Fixed an edit from 1.6.3 that made the $robots array in user_agents.php go poof.</li>
+ <li>Fixed a bug in the Email library with quoted-printable encoding improperly encoding space and tab characters.</li>
</ul>
<h2>Version 1.6.3</h2>
|