Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6c862208
Commit
6c862208
authored
Nov 29, 2002
by
Dries
Browse files
- Fixed small glitch in drupal_goto(): somethimes a "&" got appended. Patch by Marco.
parent
e2869eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
6c862208
...
...
@@ -314,18 +314,18 @@ function drupal_goto($url) {
** is compiled with "--enable-trans-sid".
*/
if
(
ini_get
(
"session.use_trans_sid"
))
{
$sid
=
session_name
()
.
"="
.
session_id
();
}
if
(
!
session_id
()
||
strstr
(
$url
,
$sid
))
{
if
(
!
ini_get
(
"session.use_trans_sid"
)
||
!
session_id
()
||
strstr
(
$url
,
$sid
))
{
header
(
"Location:
$url
"
);
}
else
if
(
strstr
(
$url
,
"?"
)
&&
!
strstr
(
$url
,
$sid
))
{
header
(
"Location:
$url
&"
.
$sid
);
}
else
{
header
(
"Location:
$url
?"
.
$sid
);
$sid
=
session_name
()
.
"="
.
session_id
();
if
(
strstr
(
$url
,
"?"
)
&&
!
strstr
(
$url
,
$sid
))
{
header
(
"Location:
$url
&"
.
$sid
);
}
else
{
header
(
"Location:
$url
?"
.
$sid
);
}
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment