rails/rails — pull request #12410 by tamird (2013-09-30 17:42:42+00:00)
Title: Fix ip spoof errors

@pixeltrix @strzalek backported as requested.