- Fix handling of Thunderbird's vCards (#1487024)

release-0.6
alecpl 14 years ago
parent 249db18585
commit 928bcaedc0

@ -15,6 +15,7 @@ CHANGELOG Roundcube Webmail
- Plugin API: improved 'abort' flag handling, added 'result' item in some hooks (#1486914) - Plugin API: improved 'abort' flag handling, added 'result' item in some hooks (#1486914)
- Fix: contact group input is empty when using rename action more than once on the same group record - Fix: contact group input is empty when using rename action more than once on the same group record
- Fix "Server Error! (Not Found)" when using utils/save-pref action (#1487023) - Fix "Server Error! (Not Found)" when using utils/save-pref action (#1487023)
- Fix handling of Thunderbird's vCards (#1487024)
RELEASE 0.4.1 RELEASE 0.4.1
------------- -------------

@ -218,7 +218,9 @@ class rcube_vcard
if ($in_vcard_block && !empty($line)) if ($in_vcard_block && !empty($line))
$vcard_block .= $line . "\n"; $vcard_block .= $line . "\n";
if (trim($line) == 'END:VCARD') { $line = trim($line);
if (preg_match('/^END:VCARD$/i', $line)) {
// parse vcard // parse vcard
$obj = new rcube_vcard(self::cleanup($vcard_block), $charset); $obj = new rcube_vcard(self::cleanup($vcard_block), $charset);
if (!empty($obj->displayname)) if (!empty($obj->displayname))
@ -226,7 +228,7 @@ class rcube_vcard
$in_vcard_block = false; $in_vcard_block = false;
} }
else if (trim($line) == 'BEGIN:VCARD') { else if (preg_match('/^BEGIN:VCARD$/i', $line)) {
$vcard_block = $line . "\n"; $vcard_block = $line . "\n";
$in_vcard_block = true; $in_vcard_block = true;
} }

Loading…
Cancel
Save