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:
parent
ca9436fdac
commit
6272cae912
|
@ -194,9 +194,7 @@ function redirect($location, $message = null) {
|
|||
}
|
||||
|
||||
function remove_from_uri($param = "") {
|
||||
if (!isset($_COOKIE[session_name()])) {
|
||||
$param = "($param|" . session_name() . ")";
|
||||
}
|
||||
return preg_replace("~\\?$param=[^&]*&~", '?', preg_replace("~\\?$param=[^&]*\$|&$param=[^&]*~", '', $_SERVER["REQUEST_URI"]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue