Browse Source

Merge branch 'trunk'

Andy 5 years ago
parent
commit
6b06b2472b
2 changed files with 2 additions and 2 deletions
  1. 0 1
      functions/attachment_common.php
  2. 2 1
      functions/mime.php

+ 0 - 1
functions/attachment_common.php

@@ -269,7 +269,6 @@ function attachment_common_octet_stream(&$Args) {
 
 
     $Ext = '';
     $Ext = '';
     if (is_array($Regs) && isset($Regs[1])) {
     if (is_array($Regs) && isset($Regs[1])) {
-        $Ext = $Regs[1];
         $Ext = strtolower($Regs[1]);
         $Ext = strtolower($Regs[1]);
     }
     }
 
 

+ 2 - 1
functions/mime.php

@@ -602,7 +602,8 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) {
            returning any changes, changes should simply be made to the original
            returning any changes, changes should simply be made to the original
            arguments themselves. */
            arguments themselves. */
         $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent,
         $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent,
-                    &$defaultlink, &$display_filename, &$where, &$what);
+                    &$defaultlink, &$display_filename, &$where, &$what,
+                    $type0, $temp1);
         do_hook("attachment $type0/$type1", $temp);
         do_hook("attachment $type0/$type1", $temp);
         /* The API for this hook has changed as of 1.5.2 so that all plugin
         /* The API for this hook has changed as of 1.5.2 so that all plugin
            arguments are passed in an array instead of each their own plugin
            arguments are passed in an array instead of each their own plugin