diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-04-24 10:40:58 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-04-25 19:01:39 +0200 |
commit | e94795536758c4b55c3fab8fdbae1b7eac96133e (patch) | |
tree | abdada60c4d93c4a86a37a665c4f9162853e7a88 /program | |
parent | 8a4234d2fc5418fdfbc46f967de8c1731b974ba9 (diff) |
Accept broken vcards from Outlook that only supply ORG but not the required N or FN properties
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_vcard.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_vcard.php b/program/lib/Roundcube/rcube_vcard.php index a54ee7e11..fb8fdd525 100644 --- a/program/lib/Roundcube/rcube_vcard.php +++ b/program/lib/Roundcube/rcube_vcard.php @@ -149,6 +149,11 @@ class rcube_vcard $this->email[0] = $this->email[$pref_index]; $this->email[$pref_index] = $tmp; } + + // fix broken vcards from Outlook that only supply ORG but not the required N or FN properties + if (!strlen(trim($this->displayname . $this->surname . $this->firstname)) && strlen($this->organization)) { + $this->displayname = $this->organization; + } } /** |