Changeset fe3a1d6 in github


Ignore:
Timestamp:
Mar 9, 2012 2:43:19 AM (16 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
3cbdbd9
Parents:
a1f855e
Message:
  • Fix encoding of attachment with comma in name (#1488389)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    re97f010 rfe3a1d6  
    22=========================== 
    33 
     4- Fix encoding of attachment with comma in name (#1488389) 
    45- Scroll long lists on drag&drop (#1485946) 
    56- Fix handling of % character in IMAP protocol (#1488382) 
  • program/lib/Mail/mime.php

    r53604a0 rfe3a1d6  
    11431143 
    11441144        // add parameters 
    1145         $token_regexp = '#([^\x21,\x23-\x27,\x2A,\x2B,\x2D' 
    1146             . ',\x2E,\x30-\x39,\x41-\x5A,\x5E-\x7E])#'; 
     1145        $token_regexp = '#([^\x21\x23-\x27\x2A\x2B\x2D' 
     1146            . '\x2E\x30-\x39\x41-\x5A\x5E-\x7E])#'; 
    11471147        if (is_array($params)) { 
    11481148            foreach ($params as $name => $value) { 
  • program/lib/Mail/mimePart.php

    r4c24246 rfe3a1d6  
    640640        // value needs encoding if contains non-ASCII chars or is longer than 78 chars 
    641641        if (!preg_match('#[^\x20-\x7E]#', $value)) { 
    642             $token_regexp = '#([^\x21,\x23-\x27,\x2A,\x2B,\x2D' 
    643                 . ',\x2E,\x30-\x39,\x41-\x5A,\x5E-\x7E])#'; 
     642            $token_regexp = '#([^\x21\x23-\x27\x2A\x2B\x2D' 
     643                . '\x2E\x30-\x39\x41-\x5A\x5E-\x7E])#'; 
    644644            if (!preg_match($token_regexp, $value)) { 
    645645                // token 
     
    663663        // RFC2231: 
    664664        $encValue = preg_replace_callback( 
    665             '/([^\x21,\x23,\x24,\x26,\x2B,\x2D,\x2E,\x30-\x39,\x41-\x5A,\x5E-\x7E])/', 
     665            '/([^\x21\x23\x24\x26\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7E])/', 
    666666            array($this, '_encodeReplaceCallback'), $value 
    667667        ); 
Note: See TracChangeset for help on using the changeset viewer.