summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 776e113b3..e441b3f30 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -79,7 +79,12 @@ function drupal_goto($url) {
** is compiled with "--enable-trans-sid".
*/
- header("Location: $url&". SID);
+ if (strstr($url, "?")) {
+ header("Location: $url&". SID);
+ }
+ else {
+ header("Location: $url?". SID);
+ }
}
function check_form($text) {