From 8e646f42ca9aff92ae92dd825b41bb61b273d57e Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sun, 2 Nov 2003 15:36:10 +0000 Subject: Bug 111522: Provide ability to specify MIME type of attachment when downloading - correction of url parameter name to avoid usage conflicts with other parts of Bugzilla Patch by Alex Vincent r= justdave, a= justdave --- attachment.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index 1f855d367..7063609ee 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -436,12 +436,12 @@ sub view my ($contenttype, $filename, $thedata) = FetchSQLData(); # Bug 111522: allow overriding content-type manually in the posted $::FORM. - if ($::FORM{'ctype'}) + if ($::FORM{'content_type'}) { $::FORM{'contenttypemethod'} = 'manual'; - $::FORM{'contenttypeentry'} = $::FORM{'ctype'}; + $::FORM{'contenttypeentry'} = $::FORM{'content_type'}; validateContentType(); - $contenttype = $::FORM{'ctype'}; + $contenttype = $::FORM{'content_type'}; } # Return the appropriate HTTP response headers. -- cgit v1.2.3-24-g4f1b