From 46bc57c1ee85c4ca4f473f009f2a4afdf0c00e5e Mon Sep 17 00:00:00 2001 From: ullgren Date: Mon, 10 Jun 2002 22:52:00 +0000 Subject: [PATCH] Fix for 566887 (Dispalying of folders names with blanks) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2942 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/folders.php | 20 ++++++++++---------- src/search.php | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/folders.php b/src/folders.php index 26b9709b..5c023af1 100644 --- a/src/folders.php +++ b/src/folders.php @@ -83,13 +83,13 @@ for ($i = 0; $i < count($boxes); $i++) { $default_sub_of_inbox) { $box = $boxes[$i]['unformatted']; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); + $box2 = str_replace(' ', ' ', + imap_utf7_decode_local($boxes[$i]['unformatted-disp'])); echo "\n"; } else { $box = $boxes[$i]['unformatted']; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); + $box2 = str_replace(' ', ' ', + imap_utf7_decode_local($boxes[$i]['unformatted-disp'])); if (strtolower($imap_server_type) != 'courier' || strtolower($box) != "inbox.trash") echo "\n"; @@ -153,8 +153,8 @@ if ($count_special_folders < count($boxes)) { ($boxes[$i]['unformatted'] != $draft_folder)) { $box = $boxes[$i]['unformatted-dm']; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); + $box2 = str_replace(' ', ' ', + imap_utf7_decode_local($boxes[$i]['unformatted-disp'])); if (strtolower($imap_server_type) != 'courier' || strtolower($box) != 'inbox.trash') { echo "\n"; } @@ -192,8 +192,8 @@ if ($count_special_folders < count($boxes)) { ((strtolower($imap_server_type) != 'courier') || (strtolower($boxes[$i]['unformatted']) != 'inbox.trash'))) { $box = $boxes[$i]['unformatted-dm']; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); + $box2 = str_replace(' ', ' ', + imap_utf7_decode_local($boxes[$i]['unformatted-disp'])); echo " \n"; } } @@ -223,8 +223,8 @@ if ($count_special_folders < count($boxes)) { ($boxes[$i]["unformatted"] != $sent_folder) && ($boxes[$i]["unformatted"] != $draft_folder)) { $box = $boxes[$i]["unformatted-dm"]; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]["unformatted-disp"])); + $box2 = str_replace(' ', ' ', + imap_utf7_decode_local($boxes[$i]["unformatted-disp"])); echo "