summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 17:34:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 17:34:48 +0000
commitf2fd78f7b868c184e4ab2058e41a27043640843a (patch)
tree5fa1f049587fa5dd2f0cced7caed3f8a7bdbf8e1 /lib
parent41faf7f5f54441a2f0ace22d5e40a0bd527a7885 (diff)
downloadredmine-f2fd78f7b868c184e4ab2058e41a27043640843a.tar.gz
redmine-f2fd78f7b868c184e4ab2058e41a27043640843a.zip
Use POST instead of GET for logging out (#13022).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11289 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 5b09b77b8..ad248c14f 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -208,7 +208,7 @@ Redmine::MenuManager.map :account_menu do |menu|
menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? }
menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
- menu.push :logout, :signout_path, :if => Proc.new { User.current.logged? }
+ menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
end
Redmine::MenuManager.map :application_menu do |menu|