From 86bb3b47cf259a94e1b27e2ec4dc76dc9f03f98a Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 8 Jan 2001 21:40:20 +0000 Subject: [PATCH] fixed an error that wouldn't display "Password Incorrect". This cropped up when we added redirect.php. Fixed now. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@917 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/redirect.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/redirect.php b/src/redirect.php index 776fb635..fafdd00e 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -59,6 +59,9 @@ if ($force_username_lowercase) $username = strtolower($login_username); $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0); + if (!$imapConnection) { + exit; + } sqimap_logout($imapConnection); setcookie("username", $login_username, 0, $base_uri); -- 2.25.1