Przeglądaj źródła

Bugfix. Show attached images.

philippe_mingo 23 lat temu
rodzic
commit
4ac69d4c8d
2 zmienionych plików z 8 dodań i 5 usunięć
  1. 5 2
      functions/attachment_common.php
  2. 3 3
      src/read_body.php

+ 5 - 2
functions/attachment_common.php

@@ -133,9 +133,10 @@ function attachment_common_link_html(&$Args)
      $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
     '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=html';
   
-  if ($Args[8] && $Args[9])
+  if ($Args[8] && $Args[9]) {
      $Args[1]['attachment_common']['href'] .= '&where=' . 
      urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+  }
 
   $Args[1]['attachment_common']['text'] = _("view");
   
@@ -157,13 +158,15 @@ function attachment_common_link_image(&$Args)
      $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
      '&passed_ent_id=' . $Args[5];
   
-  if ($Args[8] && $Args[9])
+  if ($Args[8] && $Args[9]) {
      $Args[1]['attachment_common']['href'] .= '&where=' . 
      urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
+  }
 
   $Args[1]['attachment_common']['text'] = _("view");
   
   $Args[6] = $Args[1]['attachment_common']['href'];
+  
 }
 
 

+ 3 - 3
src/read_body.php

@@ -659,9 +659,9 @@ if (($attachment_common_show_images) &&
 
     foreach ($attachment_common_show_images_list as $img) {
         $imgurl = '../src/download.php' .
-                "?startMessage=$startMessage".
-                '&passed_id='     . urlencode($img['passed_id']) .
-                '&mailbox='       . urlencode($img['mailbox']) .
+                '?' . 
+                'passed_id='     . urlencode($img['passed_id']) .
+                '&mailbox='       . urlencode($mailbox) .
                 '&passed_ent_id=' . urlencode($img['ent_id']) .
                 '&absolute_dl=true';