compare addresses case insensitively, thanks Xaviet Bruyet.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 May 2007 16:16:55 +0000 (16:16 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 May 2007 16:16:55 +0000 (16:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12395 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/identity.php

index b2b8217..d569256 100644 (file)
@@ -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;
                 }
             }