- small improvement to 'drupal_goto()'
parent
6ce32718eb
commit
3f91d675c7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue