From fd0244dabfe6fe5d51c64aae293e8d199bbde5ae Mon Sep 17 00:00:00 2001 From: James Buncle Date: Thu, 7 Jan 2016 16:03:23 +0000 Subject: [PATCH] Ensure roundcube doesn't render contact names as blank (when the name is whitespace) --- program/lib/Roundcube/rcube_addressbook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php index 325b48a6a..b4ce03bd2 100644 --- a/program/lib/Roundcube/rcube_addressbook.php +++ b/program/lib/Roundcube/rcube_addressbook.php @@ -550,7 +550,7 @@ abstract class rcube_addressbook // fallbacks... if ($fn === '') { // ... display name - if (!empty($contact['name'])) { + if (!empty(trim($contact['name']))) { $fn = $contact['name']; } // ... organization