From b45f6a2f20fefcef0d48b1b993da250c7d01aff1 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Tue, 25 May 1999 02:06:04 +0000 Subject: Don't put the filename in the content-type field; it's apparently not legal MIME for some content-types. --- showattachment.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'showattachment.cgi') 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 -# David Gardiner 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]}; -- cgit v1.2.3-24-g4f1b