From bf15f1160f240b8c9ce2575c1e1370dacacf046d Mon Sep 17 00:00:00 2001 From: tassium Date: Mon, 11 Aug 2003 17:11:14 +0000 Subject: [PATCH] Fix to prevent query containing username and password from being displayed if imap connection fails during login. Similar code committed to stable as well. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5498 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 921598b3..17671284 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -302,7 +302,10 @@ function sqimap_error_box($title, $query = '', $message_title = '', $message = ' set_up_language($squirrelmail_language); require_once(SM_PATH . 'functions/display_messages.php'); $string = "\n" . $title . "
\n"; - if ($query != '') + $cmd = explode(' ',$query); + $cmd= strtolower($cmd[0]); + + if ($query != '' && $cmd != 'login') $string .= _("Query:") . ' ' . htmlspecialchars($query) . '
'; if ($message_title != '') $string .= $message_title; -- 2.25.1