dovecot-1.1: quoted-printable decoding didn't handle QP after so...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 11 02:14:16 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/d51e3de292ad
changeset: 8350:d51e3de292ad
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 10 19:13:19 2009 -0400
description:
quoted-printable decoding didn't handle QP after soft line breaks correctly.
Patch by Yamazaki Hideto.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-mail/quoted-printable.c |    4 ++--

diffs (21 lines):

diff -r 197d44c80387 -r d51e3de292ad src/lib-mail/quoted-printable.c
--- a/src/lib-mail/quoted-printable.c	Thu Sep 10 13:51:47 2009 -0400
+++ b/src/lib-mail/quoted-printable.c	Thu Sep 10 19:13:19 2009 -0400
@@ -43,7 +43,7 @@ void quoted_printable_decode(const unsig
 
 		if (src[src_pos+1] == '\n') {
 			/* =\n -> skip both */
-			src_pos += 2;
+			src_pos++;
 			next += 2;
 			continue;
 		}
@@ -53,7 +53,7 @@ void quoted_printable_decode(const unsig
 
 		if (src[src_pos+1] == '\r' && src[src_pos+2] == '\n') {
 			/* =\r\n -> skip both */
-			src_pos += 3;
+			src_pos += 2;
 			next += 3;
 			continue;
 		}


More information about the dovecot-cvs mailing list