03_session_path.patch

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

Download (863 Bytes)

View differences:

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