Changeset 8241442 in github


Ignore:
Timestamp:
Jan 17, 2011 8:36:51 AM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e81a307
Parents:
a76cbdd
Message:
  • Workaround for setting charset in case of malformed bodystructure response (#1487700)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    ra76cbdd r8241442  
    55- Require PHP 5.2.1 or greater 
    66- Fix %h/%z variables in username_domain option (#1487701) 
     7- Workaround for setting charset in case of malformed bodystructure response (#1487700) 
    78 
    89RELEASE 0.5 
  • program/include/rcube_imap.php

    rf5e7b353 r8241442  
    20542054        } 
    20552055 
    2056         $struct = &$this->_structure_part($structure); 
     2056        $struct = &$this->_structure_part($structure, 0, '', $headers); 
    20572057        $struct->headers = get_object_vars($headers); 
    20582058 
     
    21842184            if (isset($struct->ctype_parameters['charset'])) 
    21852185                $struct->charset = $struct->ctype_parameters['charset']; 
     2186        } 
     2187 
     2188        // #1487700: workaround for lack of charset in malformed structure 
     2189        if (empty($struct->charset) && !empty($mime_headers) && $mime_headers->charset) { 
     2190            $struct->charset = $mime_headers->charset; 
    21862191        } 
    21872192 
Note: See TracChangeset for help on using the changeset viewer.