From: kink Date: Thu, 6 Jul 2006 13:27:23 +0000 (+0000) Subject: - Fix URL for Read Receipts being incorrect in some cases (#1177518). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bfb5513495378807720cf253c2f10b362abe14b5;p=squirrelmail.git - Fix URL for Read Receipts being incorrect in some cases (#1177518). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11359 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index 84579db5..c941db27 100644 --- a/ChangeLog +++ b/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) -------------------------------------- diff --git a/src/read_body.php b/src/read_body.php index 882e3f7d..10b32ed5 100644 --- a/src/read_body.php +++ b/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 = '