X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fredirect.php;h=9fd308513f2e66416b24bc21e554d3afc7a31bc4;hp=fdf8d0967479714c365a03d761af199517a2f399;hb=22387c8d44f3ab104db6e19180d3775a45762359;hpb=1977ab5587905d225c6288141b82f7a6e3d29d02 diff --git a/src/redirect.php b/src/redirect.php index fdf8d096..9fd30851 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -5,7 +5,7 @@ * * Derived from webmail.php by Ralf Kraudelt * - * @copyright 1999-2010 The SquirrelMail Project Team + * @copyright 1999-2017 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -23,7 +23,11 @@ require('../include/init.php'); require_once(SM_PATH . 'functions/imap_general.php'); require_once(SM_PATH . 'functions/strings.php'); +// Disable browser caching +// +header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0'); header('Pragma: no-cache'); +header('Expires: Sat, 1 Jan 2000 00:00:00 GMT'); $location = get_location(); // session_set_cookie_params (0, $base_uri); @@ -67,7 +71,8 @@ if ($force_username_lowercase) { } /* Verify that username and password are correct. */ -$imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0); +global $imap_stream_options; // in case not defined in config +$imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0, $imap_stream_options); /* From now on we are logged it. If the login failed then sqimap_login handles it */ /**