From: lkehresman Date: Sat, 8 Jan 2000 21:42:39 +0000 (+0000) Subject: bugfixes to reply all X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=7c6cb7ca12a436fefadcd4e3355b2535f72887ed bugfixes to reply all git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@148 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 042a1c40..7f181f54 100644 --- a/src/compose.php +++ b/src/compose.php @@ -93,9 +93,18 @@ $send_to = stripslashes($send_to); if ($send_to_cc != "") { - $send_to_cc = strtolower($send_to_cc); - $send_to_cc = ereg_replace("\"", "", $send_to_cc); - $send_to_cc = stripslashes($send_to_cc); + $send_to_cc = ereg_replace(";", ",", $send_to_cc); + $sendcc = explode(",", $send_to_cc); + $send_to_cc = ""; + + for ($i = 0; $i < count($sendcc); $i++) { + $sendcc[$i] = encodeEmailAddr($sendcc[$i]); + $sendcc[$i] = decodeEmailAddr($sendcc[$i]); + if ($i == count($send_cc) - 1) + $send_to_cc .= trim($sendcc[$i]); + else + $send_to_cc .= trim($sendcc[$i]) . ", "; + } } echo "
\n";