diff options
-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," . |