Browse code

Some phishes were getting through - bug33

git-svn: trunk@2476

Nigel Horne authored on 2006/11/04 04:48:17
Showing 2 changed files
... ...
@@ -1,6 +1,10 @@
1
+Fri Nov  3 19:47:42 GMT 2006 (njh)
2
+----------------------------------
3
+  * libclamav/mbox.c:	Partial fix for bug 33
4
+
1 5
 Thu Nov  2 09:36:06 GMT 2006 (njh)
2 6
 ----------------------------------
3
-  * libclamav/js/jsint.h:	Fix compilatin error under FreeBSD6.1
7
+  * libclamav/js/jsint.h:	Fix compilation error under FreeBSD6.1
4 8
 
5 9
 Thu Nov  2 00:20:36 CET 2006 (tk)
6 10
 ---------------------------------
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.357 2006/10/29 13:54:06 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.358 2006/11/03 19:47:16 njh Exp $";
20 20
 
21 21
 #ifdef	_MSC_VER
22 22
 #include <winsock.h>	/* only needed in CL_EXPERIMENTAL */
... ...
@@ -1673,6 +1673,14 @@ parseEmailFile(FILE *fin, const table_t *rfc821, const char *firstLine, const ch
1673 1673
 						continue;
1674 1674
 				}
1675 1675
 
1676
+				/*
1677
+				 * Handle broken headers, where the next
1678
+				 * line isn't indented by whitespace
1679
+				 */
1680
+				if(fullline[fulllinelength - 2] == ';')
1681
+					/* Add arguments to this line */
1682
+					continue;
1683
+
1676 1684
 				if(line && (count_quotes(fullline) & 1))
1677 1685
 					continue;
1678 1686