Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
280ed847
Commit
280ed847
authored
Apr 23, 2003
by
Mac Newbold
Browse files
Fix redirect when we don't get a refferrer hint from the client.
parent
b24ebe87
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/toggle.php
View file @
280ed847
...
...
@@ -99,7 +99,13 @@ if (isset($HTTP_REFERER) && strcmp($HTTP_REFERER, "")) {
header
(
"Location:
$HTTP_REFERER
"
);
}
else
{
header
(
"Location:
$TBBASE
/showuser.php3?target_uid=
$target_uid
"
);
if
(
isset
(
$target_uid
))
{
header
(
"Location:
$TBBASE
/showuser.php3?target_uid=
$target_uid
"
);
}
elseif
(
isset
(
$pid
)
&&
isset
(
$eid
))
{
header
(
"Location:
$TBBASE
/showexp.php3?pid=
$pid
&eid=
$eid
"
);
}
else
{
header
(
"Location:
$TBBASE
/showuser.php3"
);
}
}
?>
Write
Preview
Supports
Markdown
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