From dfd93ee7a096bbaa5c753384136cc867dbacaf2c Mon Sep 17 00:00:00 2001 From: teepe Date: Sun, 24 Feb 2002 21:38:39 +0000 Subject: [PATCH] resume draft bug fixed #513521 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2510 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/read_body.php b/src/read_body.php index cfcba74d..34e7712c 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -418,9 +418,11 @@ if (!isset($show_more_cc)) { /** FORMAT THE TO STRING **/ $i = 0; $to_string = ''; +$url_to_string = ''; $to_ary = $message->header->to; while ($i < count($to_ary)) { $to_ary[$i] = htmlspecialchars(decodeHeader($to_ary[$i])); + $url_to_string .= $to_ary[$i]; if ($to_string) { $to_string = "$to_string
$to_ary[$i]"; @@ -454,14 +456,19 @@ while ($i < count($to_ary)) { } } } +$url_to_string = urlencode($url_to_string); + /** FORMAT THE CC STRING **/ $i = 0; +$url_cc_string = ''; if (isset ($message->header->cc[0]) && trim($message->header->cc[0])) { $cc_string = ''; $cc_ary = $message->header->cc; while ($i < count(decodeHeader($cc_ary))) { $cc_ary[$i] = htmlspecialchars($cc_ary[$i]); + $url_cc_string .= $cc_ary[$i]; + if ($cc_string) { $cc_string = "$cc_string
$cc_ary[$i]"; } else { @@ -498,14 +505,17 @@ if (isset ($message->header->cc[0]) && trim($message->header->cc[0])) { else { $cc_string = ''; } +$url_cc_string = urlencode($url_cc_string); /** FORMAT THE BCC STRING **/ $i = 0; +$url_bcc_string = ''; if (isset ($message->header->bcc[0]) && trim($message->header->bcc[0])){ $bcc_string = ''; $bcc_ary = $message->header->bcc; while ($i < count(decodeHeader($bcc_ary))) { $bcc_ary[$i] = htmlspecialchars($bcc_ary[$i]); + $url_bcc_string .= $bcc_ary[$i]; if ($bcc_string) { $bcc_string = "$bcc_string
$bcc_ary[$i]"; } else { @@ -542,6 +552,7 @@ if (isset ($message->header->bcc[0]) && trim($message->header->bcc[0])){ else { $bcc_string = ''; } +$url_bcc_string = urlencode($url_bcc_string); if ($default_use_priority) { $priority_level = substr($message->header->priority,0,1); @@ -602,7 +613,7 @@ if ($where && $what) { echo _("Delete") . ' '; if (($mailbox == $draft_folder) && ($save_as_draft)) { echo '|