- small improvement to 'drupal_goto()'

4.0.x
Dries Buytaert 2001-09-30 21:13:14 +00:00
parent 6ce32718eb
commit 3f91d675c7
1 changed files with 7 additions and 4 deletions

View File

@ -79,7 +79,10 @@ function drupal_goto($url) {
** is compiled with "--enable-trans-sid".
*/
if (strstr($url, "?")) {
if (SID == "" || strstr($url, SID)) {
header("Location: $url");
}
else if (strstr($url, "?") && !strstr($url, SID)) {
header("Location: $url&". SID);
}
else {