From: pdontthink Date: Sun, 1 Jul 2007 07:26:57 +0000 (+0000) Subject: Add cc: to the list of checks for empty recipients X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1356041de637d8ed0e27a5377d5022c8cc657c26;p=squirrelmail.git Add cc: to the list of checks for empty recipients git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12498 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 9f99f985..a1f2b18f 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1366,9 +1366,12 @@ function checkInput ($show) { * using $show=false, and then when i'm ready to display the error * message, show=true */ - global $send_to, $send_to_bcc; + global $send_to, $send_to_cc, $send_to_bcc; - if ($send_to == '' && $send_to_bcc == '') { + $send_to = trim($send_to); + $send_to_cc = trim($send_to_cc); + $send_to_bcc = trim($send_to_bcc); + if (empty($send_to) && empty($send_to_cc) && empty($send_to_bcc)) { if ($show) { plain_error_message(_("You have not filled in the \"To:\" field.")); }