diff options
author | Scott Barron <scott@elitists.net> | 2005-10-30 13:13:02 +0000 |
---|---|---|
committer | Scott Barron <scott@elitists.net> | 2005-10-30 13:13:02 +0000 |
commit | 025949102edb5f31219f053bbab07b3c2b9a555a (patch) | |
tree | 565cc8c7ec457d87931b5e19764815ddf9fb1c25 /actionpack/lib/action_controller | |
parent | 5500d13dd5260c95a97208c4a617ed5391d4f799 (diff) | |
download | rails-025949102edb5f31219f053bbab07b3c2b9a555a.tar.gz rails-025949102edb5f31219f053bbab07b3c2b9a555a.tar.bz2 rails-025949102edb5f31219f053bbab07b3c2b9a555a.zip |
Fix problem where redirecting components can cause an
infinite loop [Rick Olson]
Closes #2654
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 334dc1b4d5..fa047e18c2 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -805,6 +805,7 @@ module ActionController #:nodoc: raise "You must assign a template class through ActionController.template_class= before processing a request" unless @@template_class response.template = self.class.view_class.new(self.class.view_root, {}, self) + response.redirected_to = nil @performed_render = @performed_redirect = false end |