Commit 5efc8d72 authored by Mike Hibler's avatar Mike Hibler

More fallout from register_globals going away...

parent 123c6368
......@@ -292,10 +292,10 @@ else {
#
# Spit out a redirect
#
if (isset($HTTP_REFERER) && $HTTP_REFERER != "" &&
strpos($HTTP_REFERER,$_SERVER["SCRIPT_NAME"])===false) {
if (isset($_SERVER["HTTP_REFERER"]) && $_SERVER["HTTP_REFERER"] != "" &&
strpos($_SERVER["HTTP_REFERER"],$_SERVER["SCRIPT_NAME"])===false) {
# Make sure the referer is not me!
header("Location: $HTTP_REFERER");
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
elseif ($zapurl) {
header("Location: $zapurl");
......
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