@@ -31,17 +31,6 class ApplicationController < ActionController::Base | |||||
31 | super |
|
31 | super | |
32 | cookies.delete(:autologin) |
|
32 | cookies.delete(:autologin) | |
33 | end |
|
33 | end | |
34 | # Remove broken cookie after upgrade from 0.8.x (#4292) |
|
|||
35 | # See https://rails.lighthouseapp.com/projects/8994/tickets/3360 |
|
|||
36 | # TODO: remove it when Rails is fixed |
|
|||
37 | before_filter :delete_broken_cookies |
|
|||
38 | def delete_broken_cookies |
|
|||
39 | if cookies['_redmine_session'] && cookies['_redmine_session'] !~ /--/ |
|
|||
40 | cookies.delete '_redmine_session' |
|
|||
41 | redirect_to home_path |
|
|||
42 | return false |
|
|||
43 | end |
|
|||
44 | end |
|
|||
45 |
|
34 | |||
46 | # FIXME: Remove this when all of Rack and Rails have learned how to |
|
35 | # FIXME: Remove this when all of Rack and Rails have learned how to | |
47 | # properly use encodings |
|
36 | # properly use encodings |
General Comments 0
You need to be logged in to leave comments.
Login now