Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
f921c971
Commit
f921c971
authored
Feb 07, 2020
by
Dominik Hebeler
Browse files
temporary rewrite of HEADER to allow testing
parent
4946224f
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
f921c971
...
...
@@ -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"
]);
}
...
...
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