bug #1542875 Cookie auth on IIS
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-08-21 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/common.lib.php, libraries/auth/cookie.auth.lib.php:
|
||||
bug #1542875, Cookie auth on IIS
|
||||
|
||||
2006-08-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/bulgarian: Update, thanks to Stanislav Yordanov - stanprog.
|
||||
|
||||
|
@@ -483,6 +483,7 @@ function PMA_auth_set_user()
|
||||
$url_params['target'] = $GLOBALS['target'];
|
||||
}
|
||||
|
||||
define('PMA_COMING_FROM_COOKIE_LOGIN',1);
|
||||
PMA_sendHeaderLocation( $redirect_url . PMA_generate_common_url( $url_params, '&' ) );
|
||||
exit();
|
||||
} // end if
|
||||
|
@@ -1136,11 +1136,12 @@ if (!defined('PMA_MINIMUM_COMMON')) {
|
||||
session_write_close();
|
||||
// bug #1523784: IE6 does not like 'Refresh: 0', it
|
||||
// results in a blank page
|
||||
//if (PMA_IS_IIS) {
|
||||
// header('Refresh: 0; ' . $uri);
|
||||
//} else {
|
||||
// (but we need it when coming from the cookie login panel)
|
||||
if (PMA_IS_IIS && defined('PMA_COMING_FROM_COOKIE_LOGIN')) {
|
||||
header('Refresh: 0; ' . $uri);
|
||||
} else {
|
||||
header('Location: ' . $uri);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user