From: pdontthink Date: Mon, 8 Dec 2008 20:19:18 +0000 (+0000) Subject: Place quotes around the real name portion of addresses when putting them on the compo... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=483514ea403c4f0252d671b73cea2b11c0429c6e;p=squirrelmail.git Place quotes around the real name portion of addresses when putting them on the compose form git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13367 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/addressbook.php b/functions/addressbook.php index 0c68958d..905e630a 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -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']); }