Changeset 93af155 in github


Ignore:
Timestamp:
Jul 20, 2009 7:09:02 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
6955c70
Parents:
3b7e00f
Message:
  • Fix import of vCard entries with params (#1485453)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r503e019 r93af155  
    22=========================== 
    33 
     4- Fix import of vCard entries with params (#1485453) 
    45- Fix HTML messages output with empty block elements (#1485974) 
    56- Added hook when killing a session 
  • program/include/rcube_vcard.php

    r23a2eec r93af155  
    265265 
    266266      if (!preg_match('/^(BEGIN|END)$/i', $line[1]) && preg_match_all('/([^\\;]+);?/', $line[1], $regs2)) { 
    267         $entry = array(''); 
     267        $entry = array(); 
    268268        $field = strtoupper($regs2[1][0]); 
    269269 
     
    271271          if ((list($key, $value) = explode('=', $attr)) && $value) { 
    272272            if ($key == 'ENCODING') { 
    273               # add next line(s) to value string if QP line end detected 
     273              // add next line(s) to value string if QP line end detected 
    274274              while ($value == 'QUOTED-PRINTABLE' && preg_match('/=$/', $lines[$i])) 
    275275                  $line[2] .= "\n" . $lines[++$i]; 
     
    281281          } 
    282282          else if ($attrid > 0) { 
    283             $entry[$key] = true;  # true means attr without =value 
     283            $entry[$key] = true;  // true means attr without =value 
    284284          } 
    285285        } 
    286286 
    287         $entry[0] = self::vcard_unquote($line[2]); 
     287        $entry = array_merge($entry, (array)self::vcard_unquote($line[2])); 
    288288        $data[$field][] = count($entry) > 1 ? $entry : $entry[0]; 
    289289      } 
     
    291291 
    292292    unset($data['VERSION']); 
    293  
    294293    return $data; 
    295294  } 
     
    361360              $value[] = $attrvalues; 
    362361            elseif ($attrvalues === true) 
    363               $attr .= ";$attrname";    # true means just tag, not tag=value, as in PHOTO;BASE64:... 
     362              $attr .= ";$attrname";    // true means just tag, not tag=value, as in PHOTO;BASE64:... 
    364363            else { 
    365364              foreach((array)$attrvalues as $attrvalue) 
Note: See TracChangeset for help on using the changeset viewer.