fix 'referral' bug for UW-servers, sorry people
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 8 Apr 2005 08:47:05 +0000 (08:47 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 8 Apr 2005 08:47:05 +0000 (08:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9222 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 319dcac85bc29a5f089a177f5fb07a21fc263726..c2d04a22745efec08d9266a416e79772ee656a1b 100755 (executable)
@@ -825,7 +825,7 @@ function sqimap_login ($username, $password, $imap_server_address, $imap_port, $
         * Check RFC 2221 for details. Since we do not support login referrals yet
         * we log the user out.
         */
-    if ( strpos($message, "REFERRAL") ) {
+    if ( stristr($message, 'REFERRAL imap') === TRUE ) {
         sqimap_logout($imap_stream);   
         set_up_language($squirrelmail_language, true);
         include_once(SM_PATH . 'functions/display_messages.php' );