Place quotes around the real name portion of addresses when putting them on the compo...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 8 Dec 2008 20:19:18 +0000 (20:19 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 8 Dec 2008 20:19:18 +0000 (20:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13367 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index 0c68958..905e630 100644 (file)
@@ -517,9 +517,9 @@ class AddressBook {
         global $data_dir, $username;
         $addrsrch_fullname = getPref($data_dir, $username, 'addrsrch_fullname');
         if ($addrsrch_fullname == 'fullname')
-            return $row['name'] . ' <' . trim($row['email']) . '>';
+            return '"' . $row['name'] . '" <' . trim($row['email']) . '>';
         else if ($addrsrch_fullname == 'nickname')
-            return $row['nickname'] . ' <' . trim($row['email']) . '>';
+            return '"' . $row['nickname'] . '" <' . trim($row['email']) . '>';
         else // "noprefix"
             return trim($row['email']);
     }