The "htmlspecialchars" was butchering the entites-encoded output
authorgraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Dec 2001 22:12:36 +0000 (22:12 +0000)
committergraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Dec 2001 22:12:36 +0000 (22:12 +0000)
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 "&amp;#NNNN;&amp;#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

index b34b914..b0b03b3 100644 (file)
@@ -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);