mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
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>
This commit is contained in:
parent
760b663446
commit
b893f09104
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user