Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Changeset [0a4a5f3129a137fc357e8444a08b135f0ad4fbe8] by Darren Boyd

Revision 0a4a5f3129a137fc357e8444a08b135f0ad4fbe8, committed by Darren Boyd · December 1st, 2008 @ 07:40 PM

Making the IP Spoofing check in AbstractRequest#remote_ip configurable.

Certain groups of web proxies do not set these values properly. Notably, proxies for cell phones, which often do not set the remote IP information correctly (not surprisingly, since the clients do not have an IP address).

Allowing this to be configurable makes it possible for developers to choose to ignore this simple spoofing check, when a significant amount of their traffic would result in false positives anyway.

Signed-off-by: Michael Koziarski michael@koziarski.com

[#1200 state:committed] http://github.com/rails/rails/co...

4 changed files

  • M actionpack/CHANGELOG
  • M actionpack/lib/action_controller/base.rb
  • M actionpack/lib/action_controller/request.rb
  • M actionpack/test/controller/request_test.rb