From: kink Date: Fri, 8 Apr 2005 08:47:05 +0000 (+0000) Subject: fix 'referral' bug for UW-servers, sorry people X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2da1524c2ab376dc6a95bc5465dc4bd2b00018ff;p=squirrelmail.git fix 'referral' bug for UW-servers, sorry people git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9222 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_general.php b/functions/imap_general.php index 319dcac8..c2d04a22 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -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' );