Ver código fonte

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.

graf25 23 anos atrás
pai
commit
c352ace5d8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      functions/mailbox_display.php

+ 1 - 1
functions/mailbox_display.php

@@ -35,7 +35,7 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start
     }
     }
     $msg = $msgs[$key];
     $msg = $msgs[$key];
 
 
-    $senderName = htmlspecialchars(sqimap_find_displayable_name($msg['FROM']));
+    $senderName = sqimap_find_displayable_name($msg['FROM']);
     if( $mailbox == 'None' ) {
     if( $mailbox == 'None' ) {
         // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
         // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
         $boxes = sqimap_mailbox_list($imapConnection);
         $boxes = sqimap_mailbox_list($imapConnection);