Commit ef32606c authored by Jean-Philippe Lang's avatar Jean-Philippe Lang Committed by Eric Davis

Set the httponly flag on the autologin cookie.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4757 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4adf3abf
...@@ -216,7 +216,8 @@ class AccountController < ApplicationController ...@@ -216,7 +216,8 @@ class AccountController < ApplicationController
:value => token.value, :value => token.value,
:expires => 1.year.from_now, :expires => 1.year.from_now,
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'), :path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
:secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false) :secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
:httponly => true
} }
cookies[cookie_name] = cookie_options cookies[cookie_name] = cookie_options
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment