提交 b893f091 编写于 作者: J Junio C Hamano

mailinfo: barf and exist upon nested multipart.

At least we can detect what we do not handle.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 760b6634
......@@ -152,6 +152,10 @@ static int handle_subcontent_type(char *line)
/* We do not want to mess with boundary. Note that we do not
* handle nested multipart.
*/
if (strcasestr(line, "boundary=")) {
fprintf(stderr, "Not handling nested multipart message.\n");
exit(1);
}
slurp_attr(line, "charset=", charset);
if (*charset) {
int i, c;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册