diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-06 16:46:34 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-06 16:46:34 -0700 |
commit | b893f09104ee5f1d8710dfe17cdf1cbac995f17a (patch) | |
tree | 7d368d4da6cd303b79fa3f378a81cd4cf427e615 /tools/mailinfo.c | |
parent | [PATCH] Update documentation for git-get-tar-commit-id (diff) | |
download | tgif-b893f09104ee5f1d8710dfe17cdf1cbac995f17a.tar.xz |
mailinfo: barf and exist upon nested multipart.
At least we can detect what we do not handle.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tools/mailinfo.c')
-rw-r--r-- | tools/mailinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mailinfo.c b/tools/mailinfo.c index ef2add7ace..df470bb9c2 100644 --- a/tools/mailinfo.c +++ b/tools/mailinfo.c @@ -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; |