From b3293f0d99b13c1ee49f3605534ee3552cf19158 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 27 Mar 2003 06:05:46 +0000 Subject: Do a more thorough check for html marked as text/plain. Check that the 2003-03-28 Not Zed * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Do a more thorough check for html marked as text/plain. Check that the text starts with + + * + camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): + Do a more thorough check for html marked as text/plain. Check + that the text starts with * camel-sasl-gssapi.c (camel_sasl_gssapi_finalize): Pass in the diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index d71108afa5..2c9c03e104 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -343,8 +343,9 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser while (inptr < inend && isspace ((int) *inptr)) inptr++; - - if (inptr < inend && *inptr == '<') { + + if (((inend-inptr) > 5 && g_ascii_strncasecmp(inptr, " 9 && g_ascii_strncasecmp(inptr, "subtype); ct->subtype = g_strdup ("html"); -- cgit v1.2.3