From: stekkel Date: Fri, 17 May 2002 12:10:14 +0000 (+0000) Subject: Fix for Forward messages from a search X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=548a552a51c35aff7b8a9db77fade2835685f2f5;ds=sidebyside Fix for Forward messages from a search git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2837 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/search.php b/src/search.php index 321226ec..8ace7760 100644 --- a/src/search.php +++ b/src/search.php @@ -12,7 +12,6 @@ require_once('../src/validate.php'); require_once('../functions/imap.php'); require_once('../functions/imap_search.php'); -require_once('../functions/imap_utf7_decode_local.php'); require_once('../functions/array.php'); require_once('../functions/strings.php'); @@ -181,8 +180,11 @@ if ($mailbox == 'All Folders') { $search_all = 'all'; } -displayPageHeader($color, $mailbox); - +if (isset($composenew) && $composenew) { + displayPageHeader($color, $mailbox, 'comp_in_new();'); +} else { + displayPageHeader($color, $mailbox); +} /* See how the page was called and fire off correct function */ if ((!isset($submit) || empty($submit)) && !empty($what)) { $submit = _("Search"); @@ -308,8 +310,7 @@ echo '' . _("Current Search") . '' for ($i = 0; $i < count($boxes); $i++) { if (!in_array('noselect', $boxes[$i]['flags'])) { $box = $boxes[$i]['unformatted']; - $box2 = imap_utf7_decode_local( - str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); + $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']); if( $box2 == 'INBOX' ) { $box2 = _("INBOX"); }