Commit 6c862208 authored by Dries's avatar Dries

- Fixed small glitch in drupal_goto(): somethimes a "&" got appended.  Patch
  by Marco.
parent e2869eca
......@@ -314,18 +314,18 @@ function drupal_goto($url) {
** is compiled with "--enable-trans-sid".
*/
if (ini_get("session.use_trans_sid")) {
$sid = session_name() . "=" . session_id();
}
if (!session_id() || strstr($url, $sid)) {
if (!ini_get("session.use_trans_sid") || !session_id() || strstr($url, $sid)) {
header("Location: $url");
}
else if (strstr($url, "?") && !strstr($url, $sid)) {
header("Location: $url&". $sid);
}
else {
header("Location: $url?". $sid);
$sid = session_name() . "=" . session_id();
if (strstr($url, "?") && !strstr($url, $sid)) {
header("Location: $url&". $sid);
}
else {
header("Location: $url?". $sid);
}
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment