summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-30 11:40:49 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-30 11:40:49 +0000
commit07c587d1278f6f67e911ba1847a357e4df134015 (patch)
treed1c0702b7ecd6dcd904780abbf30997ddc729d89 /includes/common.inc
parentd7f911c91097661b7bd5ffa439fae1576532dd58 (diff)
downloadbrdo-07c587d1278f6f67e911ba1847a357e4df134015.tar.gz
brdo-07c587d1278f6f67e911ba1847a357e4df134015.tar.bz2
- small bugfix in drupal_goto
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) {