Ver código fonte

Fix for bug 554789 Loose of attachements when using the html addressbook

stekkel 23 anos atrás
pai
commit
97ed74cffe
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      src/addrbook_search_html.php

+ 6 - 1
src/addrbook_search_html.php

@@ -28,13 +28,14 @@ require_once('../functions/strings.php');
 /* Insert hidden data */
 /* Insert hidden data */
 function addr_insert_hidden() {
 function addr_insert_hidden() {
     global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox,
     global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox,
-           $identity;
+           $identity, $session;
 
 
    echo '<input type=hidden value="';
    echo '<input type=hidden value="';
    if (substr($body, 0, 1) == "\r") {
    if (substr($body, 0, 1) == "\r") {
        echo "\n";
        echo "\n";
    }
    }
    echo htmlspecialchars($body) . '" name=body>' . "\n" .
    echo htmlspecialchars($body) . '" name=body>' . "\n" .
+        '<input type=hidden value="' . $session . '" name=session>' . "\n" .
         '<input type=hidden value="' . htmlspecialchars($subject) .
         '<input type=hidden value="' . htmlspecialchars($subject) .
         '" name=subject>' . "\n" .
         '" name=subject>' . "\n" .
         '<input type=hidden value="' . htmlspecialchars($send_to) .
         '<input type=hidden value="' . htmlspecialchars($send_to) .
@@ -174,6 +175,10 @@ if ($abook->numbackends > 1) {
 } else {
 } else {
     echo '<INPUT TYPE=hidden NAME=backend VALUE=-1>' . "\n";
     echo '<INPUT TYPE=hidden NAME=backend VALUE=-1>' . "\n";
 }
 }
+if (isset($session)) {
+    echo "<input type=hidden name=\"session\" value=\"$session\">";
+}
+
 echo '<INPUT TYPE=submit VALUE="' . _("Search") . '">' .
 echo '<INPUT TYPE=submit VALUE="' . _("Search") . '">' .
      '&nbsp;|&nbsp;<INPUT TYPE=submit VALUE="' . _("List all") .
      '&nbsp;|&nbsp;<INPUT TYPE=submit VALUE="' . _("List all") .
      '" NAME=listall>' . "\n" .
      '" NAME=listall>' . "\n" .