From 8767fd29c46f4f89890dddd3580a13bdbe4f1398 Mon Sep 17 00:00:00 2001 From: graf25 Date: Mon, 31 Dec 2001 22:12:36 +0000 Subject: [PATCH] The "htmlspecialchars" was butchering the entites-encoded output provided by the decodeHeader(). E.g. if there was any non-ascii characters in the "From:" line, the decodeHeader would return them as entities, "&#NNNN;&#NNNN;....", and htmlspecialchars would reduce this to "&#NNNN;&#NNNN...." which looked EXTRAORDINARILY ugly when rendered in a browser. This is a stop-gap measure -- htmlspecialchars should be called at some point. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2068 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b34b9145..b0b03b3b 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -35,7 +35,7 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start } $msg = $msgs[$key]; - $senderName = htmlspecialchars(sqimap_find_displayable_name($msg['FROM'])); + $senderName = sqimap_find_displayable_name($msg['FROM']); if( $mailbox == 'None' ) { // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); -- 2.25.1