aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-25 02:06:04 +0000
committerterry%mozilla.org <>1999-05-25 02:06:04 +0000
commitb45f6a2f20fefcef0d48b1b993da250c7d01aff1 (patch)
treeac9ef06d001fe0a1d4078e0b16b5d1f2b2de4ee5 /showattachment.cgi
parentDon't do javascript on browsers older than 4.06; it seems not to be working. (diff)
downloadbugzilla-b45f6a2f20fefcef0d48b1b993da250c7d01aff1.tar.gz
bugzilla-b45f6a2f20fefcef0d48b1b993da250c7d01aff1.tar.bz2
bugzilla-b45f6a2f20fefcef0d48b1b993da250c7d01aff1.zip
Don't put the filename in the content-type field; it's apparently not legal MIME for some content-types.
Diffstat (limited to 'showattachment.cgi')
-rwxr-xr-xshowattachment.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/showattachment.cgi b/showattachment.cgi
index 147ce8fef..d80691f73 100755
--- a/showattachment.cgi
+++ b/showattachment.cgi
@@ -18,7 +18,6 @@
# Netscape Communications Corporation. All Rights Reserved.
#
# Contributor(s): Terry Weissman <terry@mozilla.org>
-# David Gardiner <david.gardiner@unisa.edu.au>
use diagnostics;
use strict;
@@ -29,7 +28,7 @@ ConnectToDatabase();
my @row;
if (defined $::FORM{'attach_id'}) {
- SendSQL("select mimetype, filename, thedata from attachments where attach_id = $::FORM{'attach_id'}");
+ SendSQL("select mimetype, thedata from attachments where attach_id = $::FORM{'attach_id'}");
@row = FetchSQLData();
}
if (!@row) {
@@ -38,6 +37,6 @@ if (!@row) {
print "Please hit back and try again.\n";
exit;
}
-print qq{Content-type: $row[0]; name="$row[1]"; \n\n$row[2]};
+print qq{Content-type: $row[0]"; \n\n$row[1]};