From 215ac63dc9049b6441e2caa0a2d80dd6fe8106bf Mon Sep 17 00:00:00 2001 From: "dave%intrec.com" <> Date: Wed, 4 Apr 2001 03:42:58 +0000 Subject: Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in mime-types, which are legal per RFC2045 and RFC2048. --- createattachment.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createattachment.cgi b/createattachment.cgi index 4f2a465da..6af304bec 100755 --- a/createattachment.cgi +++ b/createattachment.cgi @@ -92,7 +92,7 @@ What kind of file is this? if ($mimetype eq "other") { $mimetype = $::FORM{'othertype'}; } - if ($mimetype !~ m@^(\w|-)+/(\w|-)+$@) { + if ($mimetype !~ m@^(\w|-|\+|\.)+/(\w|-|\+|\.)+$@) { Punt("You must select a legal mime type. '$mimetype' simply will not do."); } SendSQL("insert into attachments (bug_id, filename, description, mimetype, ispatch, submitter_id, thedata) values ($id," . -- cgit v1.2.3-24-g4f1b