Permalink
Browse files

Remove db after logout (thanks to Jaroslav Trsek)

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1354 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 46c520f commit 13843b24e563ccb895ba318cb77062d053789ff1 jakubvrana committed Mar 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/auth.inc.php
@@ -33,7 +33,7 @@
$_SESSION["passwords"] = array();
}
cookie("adminer_permanent", "");
- redirect(substr(ME, 0, -1), lang('Logout successful.'));
+ redirect(substr(preg_replace('~db=[^&]*&~', '', ME), 0, -1), lang('Logout successful.'));
}
} elseif ($_COOKIE["adminer_permanent"] && !isset($_SESSION["usernames"][$_GET["server"]])) {
list($server, $username, $cipher) = array_map('base64_decode', explode(":", $_COOKIE["adminer_permanent"]));

0 comments on commit 13843b2

Please sign in to comment.