Ver código fonte

- Fix URL for Read Receipts being incorrect in some cases (#1177518).

Thijs Kinkhorst 19 anos atrás
pai
commit
9d615c145e
2 arquivos alterados com 6 adições e 1 exclusões
  1. 1 0
      ChangeLog
  2. 5 1
      src/read_body.php

+ 1 - 0
ChangeLog

@@ -89,6 +89,7 @@ Version 1.5.2 - CVS
     and address book format violations that can cause PHP notices.
   - Added line length setting in local_file address book backend (#1181561).
   - Removed proprietary wrap attribute from compose form (#1512681).
+  - Fix URL for Read Receipts being incorrect in some cases (#1177518).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------

+ 5 - 1
src/read_body.php

@@ -432,7 +432,11 @@ function formatEnvheader($aMailbox, $passed_id, $passed_ent_id, $message,
                     if (!(handleAsSent($mailbox) ||
                           $message->is_deleted ||
                           $passed_ent_id)) {
-                        $mdn_url = $PHP_SELF . '&sendreceipt=1';
+                        $mdn_url = $PHP_SELF;
+                        $mdn_url = set_url_var($PHP_SELF, 'mailbox', urlencode($mailbox));
+                        $mdn_url = set_url_var($PHP_SELF, 'passed_id', $passed_id);
+                        $mdn_url = set_url_var($PHP_SELF, 'passed_ent_id', $passed_ent_id);
+                        $mdn_url = set_url_var($PHP_SELF, 'sendreceipt', 1);
                         if ($FirstTimeSee && $javascript_on) {
                             $script  = '<script type="text/javascript">' . "\n";
                             $script .= '<!--'. "\n";