summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-20 09:18:52 +0000
committeralecpl <alec@alec.pl>2008-10-20 09:18:52 +0000
commit7f639467194da6d6a4059d75fb2307ffe1201ab5 (patch)
treea56ebf15c84685272cc4ba794ff7fa96f118207c /program/steps
parent1ad39efbf4047285dd84762eb9dc55ebcd00b0a2 (diff)
- #1485499: make email address comparision case insensitive
- support multibyte characters in in_array_nocase()
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index efc979023..df6f1ffae 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -219,7 +219,7 @@ function rcmail_compose_headers($attrib)
if (!empty($addr_part['mailto'])
&& !in_array($addr_part['mailto'], $sa_recipients)
&& (!$MESSAGE->compose_from
- || !in_array($addr_part['mailto'], $MESSAGE->compose_from)
+ || !in_array_nocase($addr_part['mailto'], $MESSAGE->compose_from)
|| count($to_addresses)==1)) // allow reply to yourself
{
$fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string'];