From 507f9d753f56c0530bd7411c4de1bc3835c03321 2011-01-23 11:40:07 From: Jean-Philippe Lang Date: 2011-01-23 11:40:07 Subject: [PATCH] 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 --- diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 52b15a1..0c645e5 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -216,7 +216,8 @@ class AccountController < ApplicationController :value => token.value, :expires => 1.year.from_now, :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 end