rails/rails — pull request #4202 by dasch (2011-12-27 13:02:13+00:00)
Title: Fix bug in `ActionController::Request#remote_ip`

If `HTTP_X_FORWARDED_FOR` only contains whitespace, don't try to extract a
list of IP addresses from it. Previously, calling `#remote_ip` when `HTTP_X_FORWARDED_FOR` was e.g. `""` would cause `NoMethodError: undefined method `strip' for nil:NilClass`.