]> granicus.if.org Git - file/commitdiff
Add period (.) to allowable MIME type character list
authorReuben Thomas <rrt@sc3d.org>
Mon, 11 Feb 2008 22:12:24 +0000 (22:12 +0000)
committerReuben Thomas <rrt@sc3d.org>
Mon, 11 Feb 2008 22:12:24 +0000 (22:12 +0000)
src/apprentice.c

index 19c73d022a8e746c697aec5fef87ed236741ff0d..475ab7291b3f5767843ea852f83bfa3fd81b0edb 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.114 2008/02/11 01:36:08 rrt Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.115 2008/02/11 22:12:24 rrt Exp $")
 #endif /* lint */
 
 #define        EATAB {while (isascii((unsigned char) *l) && \
@@ -1243,7 +1243,7 @@ parse_mime(struct magic_set *ms, struct magic_entry **mentryp,
        EATAB;
        for (i = 0;
             *l && ((isascii((unsigned char)*l) && isalnum((unsigned char)*l))
-            || strchr("-+/", *l)) && i < sizeof(m->mimetype);
+            || strchr("-+/.", *l)) && i < sizeof(m->mimetype);
             m->mimetype[i++] = *l++)
                continue;
        if (i == sizeof(m->mimetype)) {