summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-29 15:16:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-29 15:16:59 +0000
commit6f3ab71f3f4b62af5f241cb9e7a967903d68aeaf (patch)
treed8888c26d478473789173160018387718b5eef2f /app/controllers
parent6fe38abdc7f28a9cbd52a4f2117fc48070d42a36 (diff)
downloadredmine-6f3ab71f3f4b62af5f241cb9e7a967903d68aeaf.tar.gz
redmine-6f3ab71f3f4b62af5f241cb9e7a967903d68aeaf.zip
Localisation not set correctly on authenticity token errors (#18499).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@13670 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 7fedd44ff..fbdb1d301 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -45,6 +45,7 @@ class ApplicationController < ActionController::Base
super
cookies.delete(autologin_cookie_name)
self.logged_user = nil
+ set_localization
render_error :status => 422, :message => "Invalid form authenticity token."
end
end