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 f171693e89946090aa665bfc96a7e032b241916f..bda8525e3282b50517a76b8c7d7f96d834dc9f24 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';