فهرست منبع

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