Changeset 9d5c834 in github


Ignore:
Timestamp:
May 19, 2010 3:57:06 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
b00ba6e6
Parents:
b62a0d2
Message:
  • Fix %00 character in winmail.dat attachments names (#1486738)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rc435173 r9d5c834  
    22=========================== 
    33 
     4- Fix %00 character in winmail.dat attachments names (#1486738) 
    45- Fix handling errors of folder deletion (#1486705) 
    56- Parse untagged CAPABILITY response for LOGIN command (#1486742) 
  • program/include/rcube_imap.php

    rc435173 r9d5c834  
    33943394        foreach ($tnef_arr as $winatt) { 
    33953395            $tpart = new rcube_message_part; 
    3396             $tpart->filename = $winatt["name"]; 
     3396            $tpart->filename = trim($winatt['name']); 
    33973397            $tpart->encoding = 'stream'; 
    3398             $tpart->ctype_primary = $winatt["type0"]; 
    3399             $tpart->ctype_secondary = $winatt["type1"]; 
    3400             $tpart->mimetype = strtolower($winatt["type0"] . "/" . $winatt["type1"]); 
     3398            $tpart->ctype_primary = trim(strtolower($winatt['type0'])); 
     3399            $tpart->ctype_secondary = trim(strtolower($winatt['type1'])); 
     3400            $tpart->mimetype = $tpart->ctype_primary . '/' . $tpart->ctype_secondary; 
    34013401            $tpart->mime_id = "winmail." . $part->mime_id . ".$pid"; 
    3402             $tpart->size = $winatt["size"]; 
     3402            $tpart->size = $winatt['size']; 
    34033403            $tpart->body = $winatt['stream']; 
    34043404 
Note: See TracChangeset for help on using the changeset viewer.