bug 1445120, cookie login not working on IIS
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-03-13 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/Config.class.php, /common.lib.php: bug #1445120,
|
||||
cookie login not working on IIS
|
||||
|
||||
2006-03-10 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/display_tbl.lib.php: reactivate in-line image display
|
||||
* transformation_wrapper.php: bug #1444121, octetstream download fails
|
||||
|
@@ -231,7 +231,10 @@ class PMA_Config
|
||||
function checkWebServer()
|
||||
{
|
||||
if (getenv('SERVER_SOFTWARE')
|
||||
&& stristr(getenv('SERVER_SOFTWARE'), 'Microsoft/IIS')) {
|
||||
// some versions return Microsoft-IIS, some Microsoft/IIS
|
||||
// we could use a preg_match() but it's slower
|
||||
&& stristr(getenv('SERVER_SOFTWARE'), 'Microsoft')
|
||||
&& stristr(getenv('SERVER_SOFTWARE'), 'IIS')) {
|
||||
$this->set('PMA_IS_IIS', 1);
|
||||
} else {
|
||||
$this->set('PMA_IS_IIS', 0);
|
||||
|
@@ -1049,11 +1049,16 @@ if (!defined('PMA_MINIMUM_COMMON')) {
|
||||
}
|
||||
header('Location: ' . $uri . $separator . SID);
|
||||
}
|
||||
} else {
|
||||
session_write_close();
|
||||
if (PMA_IS_IIS) {
|
||||
header('Refresh: 0; ' . $uri);
|
||||
} else {
|
||||
header('Location: ' . $uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list and number of available databases.
|
||||
|
Reference in New Issue
Block a user