Commit f921c971 authored by Dominik Hebeler's avatar Dominik Hebeler

temporary rewrite of HEADER to allow testing

parent 4946224f
......@@ -9,6 +9,9 @@
# Manchmal passiert es, dass ein Proxy sowohl den HEADER HTTP_FORWARDED, als auch den HEADER "HTTP_X_FORWARDED_FOR" setzt
# Wir löschen den einen und verwenden Ihn nicht:
if (!empty($_SERVER["HTTP_X_ORIGINAL_FORWARDED_FOR"])) {
$_SERVER["HTTP_X_FORWARDED_FOR"] = $_SERVER["HTTP_X_ORIGINAL_FORWARDED_FOR"];
}
if (isset($_SERVER["HTTP_FORWARDED"]) && isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
unset($_SERVER["HTTP_FORWARDED"]);
}
......
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