From 0db847e1d5057ef0efd5457234050d498a9f326e Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 9 Feb 2001 16:14:17 +0000 Subject: [PATCH] * Now the MIME type can be overridden (if you have a .php file, it is marked as applicaton/octet-stream when it should be text/plain) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1092 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/download.php b/src/download.php index 4a1b061d..af82eff0 100644 --- a/src/download.php +++ b/src/download.php @@ -82,6 +82,10 @@ $charset = $header->charset; $type0 = $header->type0; $type1 = $header->type1; + if (isset($override_type0)) + $type0 = $override_type0; + if (isset($override_type1)) + $type1 = $override_type1; $filename = decodeHeader($header->filename); if (strlen($filename) < 1) { -- 2.25.1