From 91727f6a0affe06da04db9e6c70c8d04d31570bd Mon Sep 17 00:00:00 2001 From: jangliss Date: Sun, 18 Apr 2004 20:06:32 +0000 Subject: [PATCH] Encode the < > to stop text from acting as HTML. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7168 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index 24d9e4a0..dadad1d0 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -77,7 +77,7 @@ function formatMailboxName($imapConnection, $box_array) { if ( $mailbox == 'INBOX' ) { $line .= _("INBOX"); } else { - $line .= str_replace(' ',' ',$mailbox); + $line .= str_replace(array(' ','<','>'),array(' ','<','>'),$mailbox); } if ($special_color == TRUE) $line .= ''; @@ -434,7 +434,7 @@ function ListBoxes ($boxes, $j=0 ) { $end .= ''; if (!$boxes->is_root) { - echo "" . $pre .$font. $boxes->mailboxname_sub .$fontend . $end. '
' . "\n"; + echo "" . $pre .$font. $line .= str_replace(array(' ','<','>'),array(' ','<','>'),$boxes->mailboxname_sub) .$fontend . $end. '
' . "\n"; $j++; } @@ -561,7 +561,7 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { } if (!isset($boxes->mbxs[0])) { echo ' ' . html_tag( 'div', - ''. $pre . $folder_img . ''. $boxes->mailboxname_sub . $end, + ''. $pre . $folder_img . ''. $line .= str_replace(array(' ','<','>'),array(' ','<','>'),$boxes->mailboxname_sub) . $end, 'left', '', 'class="mbx_sub" id="' .$j. '"' ) . "\n"; } else { /* get collapse information */ -- 2.25.1