add proper decoding to To fields, thanks Thierry Godefroy
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 15:13:02 +0000 (15:13 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 15:13:02 +0000 (15:13 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13095 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index 7a7d9f8..fce8783 100644 (file)
@@ -355,9 +355,10 @@ function formatRecipientString($recipients, $item ) {
         $a = array();
         foreach ($recipients as $r) {
             $a[] = array(
-                            'Name'  => htmlspecialchars($r->getAddress(false)),
+                            // note: decodeHeader is htmlsafe by default
+                            'Name'  => decodeHeader($r->getAddress(false)),
                             'Email' => htmlspecialchars($r->getEmail()),
-                            'Full'  => htmlspecialchars($r->getAddress(true))
+                            'Full'  => decodeHeader($r->getAddress(true))
                         );
         }