X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fcommon%2Fquoted-printable.c;h=2cebddad359e313b10fb974bb3904efe54f456e4;hp=8cce7fd1d3e4c7f72a067ba8bc153e8ba03f5e75;hb=2a3ee628b8963fbd0b09f4df8a4a932c1a80aa45;hpb=a20a92a18f3432f1345548e9f83b6447c26e318f diff --git a/src/common/quoted-printable.c b/src/common/quoted-printable.c index 8cce7fd1d..2cebddad3 100644 --- a/src/common/quoted-printable.c +++ b/src/common/quoted-printable.c @@ -90,6 +90,8 @@ gint qp_decode_line(gchar *str) while (*inp != '\0') { if (*inp == '=') { + if (inp[1] && inp[2] && inp[1] == '0' && inp[2] == '0') + inp += 3; if (inp[1] && inp[2] && get_hex_value((guchar *)outp, inp[1], inp[2]) == TRUE) { @@ -119,6 +121,8 @@ gint qp_decode_const(gchar *out, gint avail, const gchar *str) while (*inp != '\0' && avail > 0) { if (*inp == '=') { + if (inp[1] && inp[2] && inp[1] == '0' && inp[2] == '0') + inp += 3; if (inp[1] && inp[2] && get_hex_value((guchar *)outp, inp[1], inp[2]) == TRUE) { @@ -152,6 +156,8 @@ gint qp_decode_q_encoding(guchar *out, const gchar *in, gint inlen) while (inp - in < inlen && *inp != '\0') { if (*inp == '=' && inp + 3 - in <= inlen) { + if (inp[1] == '0' && inp[2] == '0') + inp += 3; if (get_hex_value(outp, inp[1], inp[2]) == TRUE) { inp += 3; } else {