playframework/play — pull request #437 by jschwartz73 (2012-01-17 18:20:43+00:00)
Title: [#1364] Fixed XForwardedSupport to accept commas and spaces

This is my first time doing a pull request, so please excuse any rookie mistakes.

I modified line 377 of play/mvc/Http.java from:

if (!Arrays.asList(Play.configuration.getProperty("XForwardedSupport", "127.0.0.1").split(",")).contains(remoteAddress)) {

to

if (!Arrays.asList(Play.configuration.getProperty("XForwardedSupport","127.0.0.1").split(",")).contains(remoteAddress)) {

https://play.lighthouseapp.com/projects/57987/tickets/1364-wrong-parsing-of-xforwardedsupport-with-multiple-ips-with-some-space