Przeglądaj źródła

Merge branch 'trunk'

Andy 5 lat temu
rodzic
commit
6b06b2472b
2 zmienionych plików z 2 dodań i 2 usunięć
  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 = '';
     if (is_array($Regs) && isset($Regs[1])) {
-        $Ext = $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
            arguments themselves. */
         $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);
         /* 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