From 8ef72f3300cc3d2c2b781cb91ae67aecdd9df181 Mon Sep 17 00:00:00 2001 From: phutnick Date: Tue, 4 Sep 2001 12:46:48 +0000 Subject: [PATCH 1/1] Added A. Kirtchwitz's check for set up empty MIME type. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1485 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index f0334c1e..10bb65a5 100644 --- a/src/compose.php +++ b/src/compose.php @@ -408,7 +408,10 @@ $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; } -- 2.25.1