diff options
author | dave%intrec.com <> | 2001-04-04 05:42:58 +0200 |
---|---|---|
committer | dave%intrec.com <> | 2001-04-04 05:42:58 +0200 |
commit | 215ac63dc9049b6441e2caa0a2d80dd6fe8106bf (patch) | |
tree | 5d1bd8b019e25b5b8d705dffa0b8e8fd9616cb10 | |
parent | 5377000545204203cdf1b0e94d636ff792d59541 (diff) | |
download | bugzilla-215ac63dc9049b6441e2caa0a2d80dd6fe8106bf.tar.gz bugzilla-215ac63dc9049b6441e2caa0a2d80dd6fe8106bf.tar.xz |
Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in mime-types, which are legal per RFC2045 and RFC2048.
-rwxr-xr-x | createattachment.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
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. '<tt>$mimetype</tt>' simply will not do."); } SendSQL("insert into attachments (bug_id, filename, description, mimetype, ispatch, submitter_id, thedata) values ($id," . |