made more tolerant to malformed from field in message header
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 3 Nov 2001 12:24:52 +0000 (12:24 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 3 Nov 2001 12:24:52 +0000 (12:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1687 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index a98fbe4..b521590 100644 (file)
@@ -35,7 +35,7 @@
       }
       $msg = $msgs[$key];
 
-      $senderName = sqimap_find_displayable_name($msg['FROM']);
+      $senderName = htmlentities(sqimap_find_displayable_name($msg['FROM']));
       if( $mailbox == _("None") ) {
          // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
          $boxes = sqimap_mailbox_list($imapConnection);