Browse code

Handle double colons

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@883 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/09/17 00:58:15
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Sep 16 16:57:11 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Handle double colons e.g.:
4
+					Content-Type:: multipart/mixed
5
+
1 6
 Thu Sep 16 15:25:26 BST 2004 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/mbox.c:	Handle mime types in quotation marks such as:
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.83  2004/09/16 15:56:45  nigelhorne
21
+ * Handle double colons
22
+ *
20 23
  * Revision 1.82  2004/09/16 14:23:57  nigelhorne
21 24
  * Handle quotes around mime type
22 25
  *
... ...
@@ -243,7 +246,7 @@
243 243
  * uuencodebegin() no longer static
244 244
  *
245 245
  */
246
-static	char	const	rcsid[] = "$Id: message.c,v 1.82 2004/09/16 14:23:57 nigelhorne Exp $";
246
+static	char	const	rcsid[] = "$Id: message.c,v 1.83 2004/09/16 15:56:45 nigelhorne Exp $";
247 247
 
248 248
 #if HAVE_CONFIG_H
249 249
 #include "clamav-config.h"
... ...
@@ -410,7 +413,7 @@ messageSetMimeType(message *mess, const char *type)
410 410
 	cli_dbgmsg("messageSetMimeType: '%s'\n", type);
411 411
 
412 412
 	/* Ignore leading spaces */
413
-	while(isspace(*type))
413
+	while(!isalpha(*type))
414 414
 		if(*type++ == '\0')
415 415
 			return;
416 416