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

src/compose.php

index f0334c1ea091b8a370448a697d861514f0ab73c0..10bb65a54a5e08f03ed4ce218d4deb112cba5fb1 100644 (file)
       $newAttachment['remotefilename'] = $HTTP_POST_FILES['attachfile']['name'];
       $newAttachment['type'] = 
          strtolower($HTTP_POST_FILES['attachfile']['type']);
-      
+
+      if ($newAttachment['type'] == "")
+         $newAttachment['type'] = 'application/octet-stream';
+
       $attachments[] = $newAttachment;
     }