mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Unconditionally remove session_name() in remove_from_uri()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@286 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -194,9 +194,7 @@ function redirect($location, $message = null) {
|
||||
}
|
||||
|
||||
function remove_from_uri($param = "") {
|
||||
if (!isset($_COOKIE[session_name()])) {
|
||||
$param = "($param|" . session_name() . ")";
|
||||
}
|
||||
$param = "($param|" . session_name() . ")";
|
||||
return preg_replace("~\\?$param=[^&]*&~", '?', preg_replace("~\\?$param=[^&]*\$|&$param=[^&]*~", '', $_SERVER["REQUEST_URI"]));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user