Added A. Kirtchwitz's check for set up empty MIME type.
[squirrelmail.git] / 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;
     }