]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 53696: periods(.) and plusses(+) were not being accepted as valid in...
authordave%intrec.com <>
Wed, 4 Apr 2001 03:42:58 +0000 (03:42 +0000)
committerdave%intrec.com <>
Wed, 4 Apr 2001 03:42:58 +0000 (03:42 +0000)
createattachment.cgi

index 4f2a465daf00ef59ed90a6aaaaba568c63fbadb8..6af304bec7f66e9bdfae3857426c9492dded78cd 100755 (executable)
@@ -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," .