mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 22:39:00 +01:00
fix problem when vcf-cards have double carriage returns (such as crcrlf) this seems to break the v-card
This commit is contained in:
parent
bb64a1ed2a
commit
846fa9eff9
@ -1381,6 +1381,9 @@ blockquote[type=cite] {
|
|||||||
if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD')
|
if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD')
|
||||||
{
|
{
|
||||||
$addressbook_vcal = new addressbook_vcal();
|
$addressbook_vcal = new addressbook_vcal();
|
||||||
|
// double \r\r\n seems to end a vcard prematurely, so we set them to \r\n
|
||||||
|
//error_log(__METHOD__.__LINE__.$attachment['attachment']);
|
||||||
|
$attachment['attachment'] = str_replace("\r\r\n", "\r\n", $attachment['attachment']);
|
||||||
$vcard = $addressbook_vcal->vcardtoegw($attachment['attachment']);
|
$vcard = $addressbook_vcal->vcardtoegw($attachment['attachment']);
|
||||||
if ($vcard['uid'])
|
if ($vcard['uid'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user