summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordave%intrec.com <>2001-04-04 05:42:58 +0200
committerdave%intrec.com <>2001-04-04 05:42:58 +0200
commit215ac63dc9049b6441e2caa0a2d80dd6fe8106bf (patch)
tree5d1bd8b019e25b5b8d705dffa0b8e8fd9616cb10
parent5377000545204203cdf1b0e94d636ff792d59541 (diff)
downloadbugzilla-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-xcreateattachment.cgi2
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," .