]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 111522: Provide ability to specify MIME type of attachment when downloading ...
authorjustdave%syndicomm.com <>
Sun, 2 Nov 2003 15:36:10 +0000 (15:36 +0000)
committerjustdave%syndicomm.com <>
Sun, 2 Nov 2003 15:36:10 +0000 (15:36 +0000)
Patch by Alex Vincent <ajvincent@juno.com>
r= justdave, a= justdave

attachment.cgi

index 1f855d367a8903b3b3c8142669f74fa13a089091..7063609ee7a47703f64add4537d077c6feabdb56 100755 (executable)
@@ -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.