Explorar o código

fixes attachment links when viewing messages from search results

jmunro %!s(int64=23) %!d(string=hai) anos
pai
achega
f00aea8423
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

@@ -456,7 +456,7 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) {
                      . "&passed_id=$id&mailbox=$urlMailbox"
                      . '&ent_id='.$ent.$passed_ent_id_link;
         if ($where && $what) {
-           $defaultlink = '&where='. urlencode($where).'&what='.urlencode($what);
+           $defaultlink .= '&where='. urlencode($where).'&what='.urlencode($what);
         }
         /* This executes the attachment hook with a specific MIME-type.
          * If that doesn't have results, it tries if there's a rule