diff options
author | justdave%syndicomm.com <> | 2003-11-02 16:36:10 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-11-02 16:36:10 +0100 |
commit | 8e646f42ca9aff92ae92dd825b41bb61b273d57e (patch) | |
tree | bf6d21b863f44042ff5a065c9b28ce8b5282e133 /attachment.cgi | |
parent | ec5385475d6f160be79af47c0325ccfd5bc73848 (diff) | |
download | bugzilla-8e646f42ca9aff92ae92dd825b41bb61b273d57e.tar.gz bugzilla-8e646f42ca9aff92ae92dd825b41bb61b273d57e.tar.xz |
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 <ajvincent@juno.com>
r= justdave, a= justdave
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
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. |