From 66d4ef6e31789b1e1c8a5b5c38cc94dd744e8d68 Mon Sep 17 00:00:00 2001 From: Thomas B <thomas@roundcube.net> Date: Sun, 10 Jan 2016 10:02:51 -0500 Subject: [PATCH] Merge pull request #316 from namesco/prevent-blank-contactnames --- program/lib/Roundcube/rcube_addressbook.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php index 325b48a..b4ce03b 100644 --- a/program/lib/Roundcube/rcube_addressbook.php +++ b/program/lib/Roundcube/rcube_addressbook.php @@ -550,7 +550,7 @@ // fallbacks... if ($fn === '') { // ... display name - if (!empty($contact['name'])) { + if (!empty(trim($contact['name']))) { $fn = $contact['name']; } // ... organization -- Gitblit v1.9.1