From a98e8c1f434001996b079dff0bd23a61ed541955 Mon Sep 17 00:00:00 2001 From: phutnick Date: Tue, 4 Sep 2001 12:43:39 +0000 Subject: [PATCH] Added A. Kirchwitz's check for set put empty MIME type for attachments. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1484 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/smtp.php b/functions/smtp.php index f171693e..bda8525e 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -76,7 +76,7 @@ if (isMultipart()) { foreach ($attachments as $info) { - if (isset($info['type'])) + if (isset($info['type']) && $filetype != "") $filetype = $info['type']; else $filetype = 'application/octet-stream'; -- 2.25.1