Quellcode durchsuchen

* Properly retains the mailbox when you use the HTML addressbook

Tyler Akins vor 24 Jahren
Ursprung
Commit
eae1332938
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 5 2
      src/addrbook_search_html.php

+ 5 - 2
src/addrbook_search_html.php

@@ -27,7 +27,7 @@
 
    // Insert hidden data
    function addr_insert_hidden() {
-      global $body, $subject, $send_to, $send_to_cc, $send_to_bcc;
+      global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox;
       
       echo '<input type=hidden value="';
       if (substr($body, 0, 1) == "\r")
@@ -41,6 +41,8 @@
           . '" name=send_to_cc>' . "\n";
       echo "<input type=hidden value=\"" . htmlspecialchars($send_to_bcc)
           . '" name=send_to_bcc>' . "\n";
+      echo "<input type=hidden name=mailbox value=\"" .
+          htmlspecialchars($mailbox) . "\">\n";
       echo "<input type=hidden value=\"true\" name=from_htmladdr_search>\n";
    }
 
@@ -97,7 +99,8 @@
 
    // --- End functions ---
 
-   displayPageHeader($color, 'None');
+   global $mailbox;
+   displayPageHeader($color, $mailbox);
    
    // Initialize addressbook
    $abook = addressbook_init();