Added A. Kirchwitz's check for set put empty MIME type for attachments.
authorphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Sep 2001 12:43:39 +0000 (12:43 +0000)
committerphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Sep 2001 12:43:39 +0000 (12:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1484 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index f171693..bda8525 100644 (file)
@@ -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';