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'. --- includes/common.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 256beb34c..98a94b339 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -71,6 +71,17 @@ function message_throttle() { return t("You exceeded the submission rate exceeded. Please wait a few minutes and try again."); } +function drupal_goto($url) { + + /* + ** It is advised to use "drupal_goto()" instead of PHP's "header()" as + ** "drupal_goto()" will append the user's session ID to the URI when PHP + ** is compiled with "--enable-trans-sid". + */ + + header("Location: $url". SID); +} + function check_form($text) { return htmlspecialchars(stripslashes($text)); } -- cgit v1.2.3