rails/actionpack/test
Derek Prior 13fd5586ce
Add redirect_back for safer referrer redirects
`redirect_to :back` is a somewhat common pattern in Rails apps, but it
is not completely safe. There are a number of circumstances where HTTP
referrer information is not available on the request. This happens often
with bot traffic and occasionally to user traffic depending on browser
security settings.

When there is no referrer available on the request, `redirect_to :back`
will raise `ActionController::RedirectBackError`, usually resulting in
an application error.

`redirect_back` takes a required `fallback_location` keyword argument
that specifies the redirect when the referrer information is not
available.  This prevents 500 errors caused by
`ActionController::RedirectBackError`.
2015-12-16 11:42:05 -05:00
..
abstract Revert "ActionController::Base#process() now only takes an action name" 2015-10-29 16:18:27 -07:00
assertions Show redirect response code in assert_response messages 2015-12-11 18:18:08 +01:00
controller Add redirect_back for safer referrer redirects 2015-12-16 11:42:05 -05:00
dispatch Don't catch all NameError to reraise as ActionController::RoutingError #22368 2015-12-12 11:22:08 +01:00
fixtures Add failing spec on utf8 filename with percent character 2015-08-04 21:27:22 +09:00
journey Remove TestRouter#add_routes 2015-09-29 13:43:11 +09:00
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Remove deprecate *_path helpers in email views 2015-01-04 11:58:42 -03:00
tmp
abstract_unit.rb mostly remove the ParamsParser middleware 2015-09-18 15:36:55 -07:00