@@ -23,6 +23,17 class ApplicationController < ActionController::Base | |||||
23 |
|
23 | |||
24 | layout 'base' |
|
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 | before_filter :user_setup, :check_if_login_required, :set_localization |
|
37 | before_filter :user_setup, :check_if_login_required, :set_localization | |
27 | filter_parameter_logging :password |
|
38 | filter_parameter_logging :password | |
28 | protect_from_forgery |
|
39 | protect_from_forgery | |
@@ -34,7 +45,7 class ApplicationController < ActionController::Base | |||||
34 | REDMINE_SUPPORTED_SCM.each do |scm| |
|
45 | REDMINE_SUPPORTED_SCM.each do |scm| | |
35 | require_dependency "repository/#{scm.underscore}" |
|
46 | require_dependency "repository/#{scm.underscore}" | |
36 | end |
|
47 | end | |
37 |
|
48 | |||
38 | def user_setup |
|
49 | def user_setup | |
39 | # Check the settings cache for each request |
|
50 | # Check the settings cache for each request | |
40 | Setting.check_cache |
|
51 | Setting.check_cache |
General Comments 0
You need to be logged in to leave comments.
Login now