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:
parent
380b0515d1
commit
4920bb9d4d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue