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 | |
parent | 760b6634461ded0a9f09e86388c0ad7500641f1e (diff) | |
download | git-b893f09104ee5f1d8710dfe17cdf1cbac995f17a.tar.gz git-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>
-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 ef2add7ac..df470bb9c 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; |