From c4f59e6ca6934752ea7d4458e6f888a7c4274e78 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 14 May 2007 16:16:55 +0000 Subject: [PATCH] compare addresses case insensitively, thanks Xaviet Bruyet. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12395 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/identity.php b/functions/identity.php index b2b82177..d5692566 100644 --- a/functions/identity.php +++ b/functions/identity.php @@ -257,7 +257,7 @@ function find_identity($needles) { foreach ( $idents as $nr => $ident ) { if ( isset($ident['email_address']) ) { foreach ( $needles as $needle ) { - if ( $needle == $ident['email_address'] ) { + if ( strcasecmp($needle, $ident['email_address']) == 0 ) { return $nr; } } -- 2.25.1