Revision 2422
Added by Jean-Philippe Lang over 16 years ago
sandbox/rails-2.2/app/controllers/application.rb | ||
---|---|---|
21 | 21 |
class ApplicationController < ActionController::Base |
22 | 22 |
include Redmine::I18n |
23 | 23 |
|
24 |
# In case the cookie store secret changes |
|
25 |
rescue_from CGI::Session::CookieStore::TamperedWithCookie do |exception| |
|
26 |
render :text => 'Your session was invalid and has been reset. Please, reload this page.', :status => 500 |
|
27 |
end |
|
28 |
|
|
24 | 29 |
layout 'base' |
25 | 30 |
|
26 | 31 |
before_filter :user_setup, :check_if_login_required, :set_localization |
Also available in: Unified diff
Rescue TamperedWithCookie exception.