Skip to content

Remove array_reverse function in x-forwarded-for ip address list#71

Closed
om3rcitak wants to merge 1 commit intosymfony:5.3from
om3rcitak:patch-1
Closed

Remove array_reverse function in x-forwarded-for ip address list#71
om3rcitak wants to merge 1 commit intosymfony:5.3from
om3rcitak:patch-1

Conversation

@om3rcitak
Copy link
Copy Markdown

Who suggest the "we should reverse x-forwarded-for ip addresses list" idea and who accepted this i don't know but this behavior is wrong. Client ip address is first one of x-forwarded-for ip address list and if there is a 1 or multiple gateway between client and server, gateway ip addresses are added last of array.

References:

Who suggest the "we should reverse x-forwarded-for ip addresses list" idea and who accepted this i don't know but this behavior is wrong. Client ip address is first one of x-forwarded-for ip address list and if there is a 1 or multiple gateway between client and server, gateway ip addresses are added last of array.

References:
- https://en.wikipedia.org/wiki/X-Forwarded-For
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For
@symfony-bot
Copy link
Copy Markdown

symfony-bot bot commented Jul 15, 2021

Thanks for your pull request! We love contributions.

However, this repository is what we call a "subtree split": a read-only copy of one directory of the main Symfony repository. It is used by Composer to allow developers to depend on specific Symfony components.

If you want to contribute, you should instead open a pull request on the main repository:

https://github.com/symfony/symfony

Thank you for your contribution!

PS: if you haven't already, please add tests, and beware that bug fixes should be submitted on the lowest maintained branch where they apply.

@azjezz
Copy link
Copy Markdown
Contributor

azjezz commented Dec 3, 2021

@om3rcitak please send this PR to https://github.com/symfony/symfony, this repository is read-only sub-split.

@om3rcitak om3rcitak closed this Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants