[PATCH] mailinfo: reset CTE after each multipart
If the first part uses quoted-printable to protect iso8859-1 name in the commit log, and the second part was plain ascii text patchfile without even Content-Transfer-Encoding subheader, we incorrectly tried to decode the patch as quoted printable. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 6, 2006 at 21:35 UTC
8bc5c04a715ee0746df2bcd7e0924f4119140ad2
1 file changed
+3
mailinfo.c
+3
@@ -707,6 +707,9 @@ static void handle_multipart_body(void)
707
if (!len) {
708
if (handle_multipart_one_part() < 0)
709
return;
710
+ /* Reset per part headers */
711
+ transfer_encoding = TE_DONTCARE;
712
+ charset[0] = 0;
713
}
714
else
715
check_subheader_line(line, len);