Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] mailinfo: reset CTE after each multipart
author
Junio C Hamano
<junkio@cox.net>
Tue, 7 Feb 2006 05:35:25 +0000
(21:35 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 7 Feb 2006 05:37:53 +0000
(21:37 -0800)
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>
mailinfo.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cc55aae
)
diff --git
a/mailinfo.c
b/mailinfo.c
index 0265a29a3855902e25e44099663c2973bbe9f53e..ff2d4d403826b035a7bb123dc74a50af9a76e353 100644
(file)
--- a/
mailinfo.c
+++ b/
mailinfo.c
@@
-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);