From 812ade5fea9e58fa45b0f8f5d8786ece397d959a Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 11 Feb 2008 22:12:24 +0000 Subject: [PATCH] Add period (.) to allowable MIME type character list --- src/apprentice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index e13cb622..e51ece01 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -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)) { -- 2.40.0