Changeset 4028 in subversion


Ignore:
Timestamp:
Oct 1, 2010 4:08:05 AM (3 years ago)
Author:
alec
Message:
  • Fix handling of Thunderbird's vCards (#1487024)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4027 r4028  
    1616- Fix: contact group input is empty when using rename action more than once on the same group record 
    1717- Fix "Server Error! (Not Found)" when using utils/save-pref action (#1487023) 
     18- Fix handling of Thunderbird's vCards (#1487024) 
    1819 
    1920RELEASE 0.4.1 
  • trunk/roundcubemail/program/include/rcube_vcard.php

    r3989 r4028  
    219219        $vcard_block .= $line . "\n"; 
    220220 
    221       if (trim($line) == 'END:VCARD') { 
     221      $line = trim($line); 
     222 
     223      if (preg_match('/^END:VCARD$/i', $line)) { 
    222224        // parse vcard 
    223225        $obj = new rcube_vcard(self::cleanup($vcard_block), $charset); 
     
    227229        $in_vcard_block = false; 
    228230      } 
    229       else if (trim($line) == 'BEGIN:VCARD') { 
     231      else if (preg_match('/^BEGIN:VCARD$/i', $line)) { 
    230232        $vcard_block = $line . "\n"; 
    231233        $in_vcard_block = true; 
Note: See TracChangeset for help on using the changeset viewer.