diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-02-27 22:52:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-02-27 22:52:08 +0000 |
commit | 41ac56a4bee7b837df2095d653ec6f2a023bc577 (patch) | |
tree | ee147e3349a0b67648a983af6aeab87b3289f113 | |
parent | 3c61a382bb497b7fb3a44bc75366cd0addc891aa (diff) | |
download | brdo-41ac56a4bee7b837df2095d653ec6f2a023bc577.tar.gz brdo-41ac56a4bee7b837df2095d653ec6f2a023bc577.tar.bz2 |
- Bugfix: transparent session ID handling wasn't working properly with
drupal_goto(). Patch by Al.
-rw-r--r-- | includes/common.inc | 3 |
1 files changed, 1 insertions, 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 { |