Explorar o código

Place quotes around the real name portion of addresses when putting them on the compose form

pdontthink %!s(int64=16) %!d(string=hai) anos
pai
achega
0a83e3fbf1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      functions/addressbook.php

+ 2 - 2
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']);
     }