git-svn: trunk@1300
Nigel Horne authored on 2005/02/01 23:45:24... | ... |
@@ -16,6 +16,9 @@ |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
* |
18 | 18 |
* $Log: blob.c,v $ |
19 |
+ * Revision 1.31 2005/02/01 14:45:24 nigelhorne |
|
20 |
+ * sanities tab characters |
|
21 |
+ * |
|
19 | 22 |
* Revision 1.30 2005/01/19 05:30:50 nigelhorne |
20 | 23 |
* Better handling of empty data |
21 | 24 |
* |
... | ... |
@@ -92,7 +95,7 @@ |
92 | 92 |
* Change LOG to Log |
93 | 93 |
* |
94 | 94 |
*/ |
95 |
-static char const rcsid[] = "$Id: blob.c,v 1.30 2005/01/19 05:30:50 nigelhorne Exp $"; |
|
95 |
+static char const rcsid[] = "$Id: blob.c,v 1.31 2005/02/01 14:45:24 nigelhorne Exp $"; |
|
96 | 96 |
|
97 | 97 |
#if HAVE_CONFIG_H |
98 | 98 |
#include "clamav-config.h" |
... | ... |
@@ -574,8 +577,9 @@ sanitiseName(char *name) |
574 | 574 |
#ifdef C_DARWIN |
575 | 575 |
*name &= '\177'; |
576 | 576 |
#endif |
577 |
+ /* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */ |
|
577 | 578 |
#if defined(MSDOS) || defined(C_CYGWIN) || defined(WIN32) || defined(C_OS2) |
578 |
- if(strchr("/*?<>|\\\"+=,;: ", *name)) |
|
579 |
+ if(strchr("/*?<>|\\\"+=,;:\t ", *name)) |
|
579 | 580 |
#else |
580 | 581 |
if(*name == '/') |
581 | 582 |
#endif |