mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
Potentiel data leak in "Invalid form authenticity token" error screen (#16511).
git-svn-id: http://svn.redmine.org/redmine/trunk@13041 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -44,6 +44,7 @@ class ApplicationController < ActionController::Base
|
|||||||
unless api_request?
|
unless api_request?
|
||||||
super
|
super
|
||||||
cookies.delete(autologin_cookie_name)
|
cookies.delete(autologin_cookie_name)
|
||||||
|
self.logged_user = nil
|
||||||
render_error :status => 422, :message => "Invalid form authenticity token."
|
render_error :status => 422, :message => "Invalid form authenticity token."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user