fix for bug #784193
[squirrelmail.git] / functions / mime.php
index f3dc3ad46c4fd27ea98d735e0ce9f8496dc5b0c7..5491e91d2de2c1ed10664df33debcc233205a5a3 100644 (file)
@@ -534,6 +534,9 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) {
         unset($links);
         $attachments .= "</TD></TR>\n";
     }
+    $attachmentadd = do_hook_function('attachments_bottom',$attachments);
+    if ($attachmentadd != '')
+        $attachments = $attachmentadd;
     return $attachments;
 }
 
@@ -589,9 +592,9 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
     $aString = explode(' ',$string);
     $ret = '';
     foreach ($aString as $chunk) {
-        if ($encoded && !$chunk) {
+        if ($encoded && $chunk === ' ') {
             continue;
-        } elseif (!$chunk) {
+        } elseif ($chunk === ' ') {
             $ret .= ' ';
             continue;
         }