From 41ac56a4bee7b837df2095d653ec6f2a023bc577 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 27 Feb 2003 22:52:08 +0000 Subject: - Bugfix: transparent session ID handling wasn't working properly with drupal_goto(). Patch by Al. --- includes/common.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index 110b69386..3f92644b1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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 { -- cgit v1.2.3