From a9b6e52d5c79bc5ab85696f01277e22f1e4e39fb Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 16 Sep 2013 18:06:58 +0000 Subject: [PATCH] Don't allow TO field to be blank; adjust auto-detection of FROM for reply-all actions as well git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14391 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compose.php b/src/compose.php index b0a1e99f..c2f85297 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1000,10 +1000,12 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se // if this is a reply-all, the original recipient // is already in the CC field, so we can just blank // the recipient (TO field) (as long as the CC field - // isn't empty that is) and we're done + // isn't empty that is)... but then move the CC into + // the TO, so TO isn't empty // if ($action == 'reply_all' && !empty($send_to_cc)) { - $send_to = ''; + $orig_to = $send_to_cc; + $send_to_cc = ''; break; } -- 2.25.1