fix for unsafe images links. Somehow the wrong were in de view unsafe images
[squirrelmail.git] / functions / mailbox_display.php
index 9aec217c943a3d41bcb839f2b6b46f62cbc6f773..f5cdda6182c33496985a8a15bc3939e276fcc052 100644 (file)
@@ -16,10 +16,6 @@ require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'class/html.class.php');
 require_once(SM_PATH . 'functions/imap_mailbox.php');
-require_once(SM_PATH . 'functions/set_language_align.php');
-
-/* --------------------- Get globals ------------------------------------- */
-$language_align = set_language_align();
 
 /* Default value for page_selector_max. */
 define('PG_SEL_MAX', 10);
@@ -159,7 +155,7 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox,
                 break;
             case 2: /* from */
                 echo html_tag( 'td',
-                               $italic . $bold . $flag . $fontstr . $senderName .
+                               $italic . $bold . $flag . $fontstr . htmlentities($senderName) .
                                $fontstr_end . $flag_end . $bold_end . $italic_end,
                                'left',
                                $hlt_color );
@@ -331,7 +327,7 @@ function getSelfSortMessages($imapConnection, $start_msg, $show_num,
 function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
                                 $start_msg, $sort, $color, $show_num,
                                 $use_cache, $mode='') {
-    global $msgs, $msort, $auto_expunge, $thread_sort_messages, $language_align,
+    global $msgs, $msort, $auto_expunge, $thread_sort_messages,
            $allow_server_sort, $server_sort_order;
 
     /* If autoexpunge is turned on, then do it now. */
@@ -425,7 +421,7 @@ function showMessagesForMailbox($imapConnection, $mailbox, $num_msgs,
     $msg_cnt_str = get_msgcnt_str($start_msg, $end_msg, $num_msgs);
 
     do_hook('mailbox_index_before');
-    echo '<table dir="' . $language_align['dir'] . '" border="0" width="100%" cellpadding="0" cellspacing="0">';
+    echo '<table border="0" width="100%" cellpadding="0" cellspacing="0">';
     echo '<tr><td>';
 
     mail_message_listing_beginning($imapConnection, $mailbox, $sort,