summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-30 11:09:22 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-30 11:09:22 +0000
commita6379d2ee80392f31691d3d8cdf8558fd34f8348 (patch)
tree643a51f40946e418ad51575c56d51a372aa1fe9f /includes/common.inc
parent8caf16cde4cebcea3534e9ff3803bef2092374b2 (diff)
downloadbrdo-a6379d2ee80392f31691d3d8cdf8558fd34f8348.tar.gz
brdo-a6379d2ee80392f31691d3d8cdf8558fd34f8348.tar.bz2
- 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'.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc11
1 files changed, 11 insertions, 0 deletions
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));
}