This project is archived and is in readonly mode.

Changeset [0a4a5f3129a137fc357e8444a08b135f0ad4fbe8] 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...

Committed by Darren Boyd

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>