diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-10-13 18:03:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:23:04 +0100 |
commit | 6b2da2581dfd0e3ba4391f4771ee93dccd539dd3 (patch) | |
tree | d1ae6a5e7cfbce675c0c7ef7380579aa8eecfede /kdecore/kmdcodec.cpp | |
parent | 7f28a16e6d9fcc9ca239dd6fcdc73d107394c5a3 (diff) | |
download | tdelibs-6b2da2581dfd0e3ba4391f4771ee93dccd539dd3.tar.gz tdelibs-6b2da2581dfd0e3ba4391f4771ee93dccd539dd3.zip |
Fix quotedPrintablecodec to support lower-case letters in hex codes
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 912e4866efdedea1a936c30ceb80d5d6df8d263d)
Diffstat (limited to 'kdecore/kmdcodec.cpp')
-rw-r--r-- | kdecore/kmdcodec.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kdecore/kmdcodec.cpp b/kdecore/kmdcodec.cpp index 77badf49f..48afddb09 100644 --- a/kdecore/kmdcodec.cpp +++ b/kdecore/kmdcodec.cpp @@ -37,6 +37,7 @@ #include <config.h> +#include <ctype.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -324,8 +325,8 @@ void KCodecs::quotedPrintableDecode(const TQByteArray& in, TQByteArray& out) { if (i < length - 2) { - char c1 = in[i + 1]; - char c2 = in[i + 2]; + char c1 = toupper(in[i + 1]); + char c2 = toupper(in[i + 2]); if (('\n' == c1) || ('\r' == c1 && '\n' == c2)) { |