Changeset 4634 in subversion


Ignore:
Timestamp:
Apr 8, 2011 2:27:28 AM (2 years ago)
Author:
alec
Message:
  • Added workaround for some IMAP server with broken STATUS response (#1487859)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4633 r4634  
    22=========================== 
    33 
     4- Added workaround for some IMAP server with broken STATUS response (#1487859) 
    45- Fix bug where default_charset was not used for text messages (#1487836) 
    56- Enable TinyMCE's contextmenu (#1487014) 
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r4632 r4634  
    953953 
    954954            list($mbox, $items) = $this->tokenizeResponse($response, 2); 
     955 
     956            // Fix for #1487859. Some buggy server returns not quoted 
     957            // folder name with spaces. Let's try to handle this situation 
     958            if (!is_array($items) && ($pos = strpos($response, '(')) !== false) { 
     959                $response = substr($response, $pos); 
     960                $items = $this->tokenizeResponse($response, 1); 
     961                if (!is_array($items)) { 
     962                    return $result; 
     963                } 
     964            } 
    955965 
    956966            for ($i=0, $len=count($items); $i<$len; $i += 2) { 
Note: See TracChangeset for help on using the changeset viewer.