fixed an error that wouldn't display "Password Incorrect". This cropped
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 8 Jan 2001 21:40:20 +0000 (21:40 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 8 Jan 2001 21:40:20 +0000 (21:40 +0000)
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

index 776fb6353df1d8b88fd37a53cc1b51dcbff69da1..fafdd00e6d517b98594a1523f60e88fb2953cb61 100644 (file)
@@ -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);