From: tassium Date: Mon, 11 Aug 2003 17:11:14 +0000 (+0000) Subject: Fix to prevent query containing username and password from being displayed if imap... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;ds=inline;h=bf15f1160f240b8c9ce2575c1e1370dacacf046d;p=squirrelmail.git 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 --- 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;