From: dave%intrec.com <> Date: Wed, 4 Apr 2001 03:42:58 +0000 (+0000) Subject: Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in... X-Git-Tag: bugzilla-2.12~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215ac63dc9049b6441e2caa0a2d80dd6fe8106bf;p=thirdparty%2Fbugzilla.git Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in mime-types, which are legal per RFC2045 and RFC2048. --- diff --git a/createattachment.cgi b/createattachment.cgi index 4f2a465daf..6af304bec7 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," .