From 1356041de637d8ed0e27a5377d5022c8cc657c26 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 1 Jul 2007 07:26:57 +0000 Subject: [PATCH] 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 --- src/compose.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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.")); } -- 2.25.1