diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-30 11:40:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-30 11:40:49 +0000 |
commit | 07c587d1278f6f67e911ba1847a357e4df134015 (patch) | |
tree | d1c0702b7ecd6dcd904780abbf30997ddc729d89 /includes/common.inc | |
parent | d7f911c91097661b7bd5ffa439fae1576532dd58 (diff) | |
download | brdo-07c587d1278f6f67e911ba1847a357e4df134015.tar.gz brdo-07c587d1278f6f67e911ba1847a357e4df134015.tar.bz2 |
- small bugfix in drupal_goto
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) { |