summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module6
1 files changed, 3 insertions, 3 deletions
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");
}
}