From ed6ca81ed4b9d7f9780a13d19b65986b99ed782c 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 19c73d02..475ab729 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -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)) { -- 2.50.1