소스 검색

fix 'referral' bug for UW-servers, sorry people

Thijs Kinkhorst 20 년 전
부모
커밋
890f0e9aca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      functions/imap_general.php

+ 1 - 1
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' );