]> 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 e13cb622e29c4a298327b0cab61eb5c07ba3b7da..e51ece01287a37d1d579f9aaf235236e2c0eda3d 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.113 2008/02/04 20:51:17 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.114 2008/02/11 01:36:08 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)) {