Commit 41ac56a4 authored by Dries's avatar Dries

- Bugfix: transparent session ID handling wasn't working properly with
  drupal_goto().  Patch by Al.
parent 3c61a382
......@@ -396,8 +396,7 @@ function drupal_goto($url) {
** "drupal_goto()" will append the user's session ID to the URI when PHP
** is compiled with "--enable-trans-sid".
*/
if (!ini_get("session.use_trans_sid") || !session_id() || strstr($url, $sid)) {
if (!ini_get("session.use_trans_sid") || !session_id() || strstr($url, session_id())) {
header("Location: $url");
}
else {
......
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