mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Cookies management on IIS (bug #2931186)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1305 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -10,9 +10,9 @@ if (isset($_POST["server"])) {
|
||||
. ":" . base64_encode(encrypt_string($_POST["password"], $adminer->permanentLogin()))
|
||||
);
|
||||
}
|
||||
if (count($_POST) == 3 + ($_POST["permanent"] ? 1 : 0)) { // 3 - server, username, password
|
||||
if (count($_POST) == ($_POST["permanent"] ? 4 : 3)) { // 3 - server, username, password
|
||||
$location = ((string) $_GET["server"] === $_POST["server"] ? remove_from_uri(session_name()) : preg_replace('~^([^?]*).*~', '\\1', ME) . ($_POST["server"] != "" ? '?server=' . urlencode($_POST["server"]) : ''));
|
||||
if (SID) {
|
||||
if (SID_FORM) {
|
||||
$pos = strpos($location, '?');
|
||||
$location = ($pos ? substr_replace($location, SID . "&", $pos + 1, 0) : "$location?" . SID);
|
||||
}
|
||||
|
Reference in New Issue
Block a user