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 a98fbe45b587d1359c8dc6cb9078b7f77e7108b4..b521590babe28e86bd5e58831d4635c316f8917c 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);