mirror of
https://github.com/redmine/redmine.git
synced 2026-07-06 10:28:59 +02:00
Use config.relative_url_root as the default path for session and autologin cookies (#21169).
Patch by Daniel Ritz. git-svn-id: http://svn.redmine.org/redmine/trunk@14876 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -272,7 +272,7 @@ class AccountController < ApplicationController
|
||||
cookie_options = {
|
||||
:value => token.value,
|
||||
:expires => 1.year.from_now,
|
||||
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
|
||||
:path => (Redmine::Configuration['autologin_cookie_path'] || RedmineApp::Application.config.relative_url_root || '/'),
|
||||
:secure => secure,
|
||||
:httponly => true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user