Commit 280ed847 authored by Mac Newbold's avatar Mac Newbold

Fix redirect when we don't get a refferrer hint from the client.

parent b24ebe87
......@@ -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");
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment