Project

General

Profile

Patch #3968 » 03_session_path.patch

corrected nil or empty patch - Jérémy Lal, 2010-05-16 17:30

View differences:

lib/tasks/initializers.rake
# change this key, all old sessions will become invalid! Make sure the
# secret is at least 30 characters and all random, no regular words or
# you'll be exposed to dictionary attacks.
relativeUrlRoot = ENV['RAILS_RELATIVE_URL_ROOT']
ActionController::Base.session = {
:session_key => '_redmine_session',
:session_path => (relativeUrlRoot.nil? or relativeUrlRoot.empty?) ? '/' : relativeUrlRoot,
:secret => '#{secret}'
}
EOF
(3-3/3)