summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
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));
}