From bca7d6d28efd050d2493f7c860f91518b30e1042 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 6 May 2008 15:13:02 +0000 Subject: [PATCH] add proper decoding to To fields, thanks Thierry Godefroy git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13095 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 7a7d9f8e..fce8783e 100644 --- a/src/read_body.php +++ b/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)) ); } -- 2.25.1