From a6379d2ee80392f31691d3d8cdf8558fd34f8348 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 30 Sep 2001 11:09:22 +0000 Subject: - replaced all 'header("Location: foo")'s by a call to 'drupal_goto()' which will append the session ID to the uri 'foo' when PHP is compiled with '--enable-transe-sid'. --- modules/user.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 1ee6599b0..5e976b61e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -482,7 +482,7 @@ function user_login($edit = array()) { $url = $HTTP_REFERER ? $HTTP_REFERER : "module.php?mod=user&op=view"; - header("Location: $url"); + drupal_goto($url); } else { @@ -529,7 +529,7 @@ function user_logout() { ** Redirect the user to his personal information page: */ - header("Location: index.php"); + drupal_goto("index.php"); } } @@ -688,7 +688,7 @@ function user_edit($edit = array()) { ** Redirect the user to his personal information page: */ - header("Location: module.php?mod=user&op=view"); + drupal_goto("module.php?mod=user&op=view"); } } -- cgit v1.2.3