Browse Source

add proper decoding to To fields, thanks Thierry Godefroy

Thijs Kinkhorst 17 years ago
parent
commit
67af44522e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/read_body.php

+ 3 - 2
src/read_body.php

@@ -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))
                         );
         }