summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-24 10:40:58 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-24 10:40:58 +0200
commitf0405b4bae247b7dfe30a870fdccb5cb0f25d76e (patch)
tree3df1a6551f4ddcfb1819b75a60fd9c3677e8e03e /program/lib/Roundcube
parent5b6d09ad29e4f1695689bd6b24d681c4f926ea4b (diff)
Accept broken vcards from Outlook that only supply ORG but not the required N or FN properties
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r--program/lib/Roundcube/rcube_vcard.php5
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;
+ }
}
/**