diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 7 |
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) { |