##// END OF EJS Templates
Remove broken cookies after upgrade from 0.8.x to prevent an error from Rails (#4292)....
Jean-Philippe Lang -
r2979:ebab5a00744c
parent child
Show More
@@ -23,6 +23,17 class ApplicationController < ActionController::Base
23 23
24 24 layout 'base'
25 25
26 # Remove broken cookie after upgrade from 0.8.x (#4292)
27 # See https://rails.lighthouseapp.com/projects/8994/tickets/3360
28 # TODO: remove it when Rails is fixed
29 before_filter :delete_broken_cookies
30 def delete_broken_cookies
31 if cookies['_redmine_session'] && cookies['_redmine_session'] !~ /--/
32 cookies.delete '_redmine_session'
33 redirect_to home_path and return false
34 end
35 end
36
26 37 before_filter :user_setup, :check_if_login_required, :set_localization
27 38 filter_parameter_logging :password
28 39 protect_from_forgery
@@ -34,7 +45,7 class ApplicationController < ActionController::Base
34 45 REDMINE_SUPPORTED_SCM.each do |scm|
35 46 require_dependency "repository/#{scm.underscore}"
36 47 end
37
48
38 49 def user_setup
39 50 # Check the settings cache for each request
40 51 Setting.check_cache
General Comments 0
You need to be logged in to leave comments. Login now