Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@richdougherty
Copy link
Member

Backport of #5306.

Fixes playframework#5299.

Parsing for Forward and X-Forwarded-* headers no longer throws
exceptions if an invalid header is found. Now a debug log
message is thrown instead. This reverses the stricter errors
introduced in playframework#5266.

Additional changes were made:
- Don't bother parsing the supplied IP address headers if we
  don't trust the connection that supplied it.
- Support values in Forward headers surrounded with double
  quotes. This is needed to support IPv6.
- Support IPv6 values in X-Forwarded-For headers even when they
  don't have surrounding square brackets. This format is
  commonly supplied by proxies.
@wsargent
Copy link
Member

LGTM

@wsargent
Copy link
Member

That's a lot of tests.

wsargent added a commit that referenced this pull request Dec 10, 2015
@wsargent wsargent merged commit 55146ba into playframework:2.4.x Dec 10, 2015
@mkurz mkurz added this to the 2.4.6 milestone Dec 14, 2015
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.

3 participants