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
ed7b4825
Commit
ed7b4825
authored
Mar 26, 2020
by
Dominik Hebeler
Browse files
Update index.php
parent
ddc2f3a9
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
ed7b4825
...
...
@@ -9,9 +9,6 @@
# 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
Markdown
is supported
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