$Log$
+ Revision 590.156 2002/03/17 00:08:02 error
+ * mime_parser.c: more robust parsing of Content-Type header
+
Revision 590.155 2002/03/16 05:22:59 ajc
* Post an error message to Aide> when unlink() is unable to delete old
database log files.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
if (!strncasecmp(header, "Content-type: ", 14)) {
strcpy(content_type, &header[14]);
extract_key(name, content_type, "name");
+ /* Deal with weird headers */
+ if (strchr(content_type, ' '))
+ *(strchr(content_type, ' ')) = '\0';
+ if (strchr(content_type, ';'))
+ *(strchr(content_type, ';')) = '\0';
lprintf(9, "Extracted content-type <%s>\n",
content_type);
}