From 6984b58130d2eb2b27b1d7a68d432fa7c00a6a34 Mon Sep 17 00:00:00 2001 From: Alfons Hoogervorst Date: Wed, 3 Dec 2003 19:36:18 +0000 Subject: [PATCH] * src/procmime.c catch invalid Content-Type with no subtype --- ChangeLog.claws | 5 +++++ configure.ac | 2 +- src/procmime.c | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 98f12413f..2b1106b6b 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,8 @@ +2003-12-03 [alfons] 0.9.7claws14 + + * src/procmime.c + catch invalid Content-Type with no subtype + 2003-12-03 [alfons] 0.9.7claws13 * src/alertpanel.h diff --git a/configure.ac b/configure.ac index 2df7ceafa..3d801a637 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=7 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=13 +EXTRA_VERSION=14 if test $EXTRA_VERSION -eq 0; then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws else diff --git a/src/procmime.c b/src/procmime.c index c2814d699..41fa8286f 100644 --- a/src/procmime.c +++ b/src/procmime.c @@ -1185,7 +1185,9 @@ void procmime_parse_mimepart(MimeInfo *parent, mimeinfo->offset = offset; mimeinfo->length = length; - if (content_type != NULL) { + /* RFC 2045, page 13 says that the mime subtype is MANDATORY; if + * it's not available than don't parse */ + if (content_type != NULL && strchr(content_type, '/')) { procmime_parse_content_type(content_type, mimeinfo); } else { mimeinfo->type = MIMETYPE_TEXT; -- 2.25.1