From d4144adf2453439095a468f36c36abaa020203a5 Mon Sep 17 00:00:00 2001 From: jmunro Date: Fri, 8 Feb 2002 18:05:37 +0000 Subject: [PATCH] fix enter button to submit form with certain browsers. Thanks Ryan git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2385 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_search.php | 2 +- src/search.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/functions/imap_search.php b/functions/imap_search.php index fbc9baeb..faddd3bf 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -194,7 +194,7 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo -1, '' . _("Found") . ' ' . count($messagelist) . ' ' . _("messages") . ''); } - echo "
$mailbox
"; + echo "Folder: $mailbox"; while ($j < count($msgs)) { printMessageInfo($imapConnection, $msgs[$j]["ID"], 0, $j, $mailbox, '', 0, $search_where, $search_what); $j++; diff --git a/src/search.php b/src/search.php index 5d6cc4ec..12121f7c 100644 --- a/src/search.php +++ b/src/search.php @@ -175,9 +175,13 @@ if ($mailbox == 'All Folders') { displayPageHeader($color, $mailbox); /* See how the page was called and fire off correct function */ -if ( !isset( $submit ) ) { - $submit = ''; -} else if ($submit == 'Search' && !empty($what)) { +//if ( !isset( $submit ) ) { +// $submit = ''; +//} else if ($submit == 'Search' && !empty($what)) { +if ((!isset($submit) || empty($submit)) && !empty($what)) { + $submit = 'Search'; +} +if ($submit == 'Search' && !empty($what)) { update_recent($what, $where, $mailbox, $username, $data_dir); } elseif ($submit == 'forget') { -- 2.25.1