Skip to content

Commit

Permalink
[PATCH] mailinfo: reset CTE after each multipart
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 7, 2006
1 parent cc55aae commit 8bc5c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mailinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ static void handle_multipart_body(void)
if (!len) {
if (handle_multipart_one_part() < 0)
return;
/* Reset per part headers */
transfer_encoding = TE_DONTCARE;
charset[0] = 0;
}
else
check_subheader_line(line, len);
Expand Down

0 comments on commit 8bc5c04

Please sign in to comment.