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 f0334c1..10bb65a 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;
     }