summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/common.inc3
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 {