mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Ensure Mini Profiler's cookie_path
is not empty or nil (#16039)
Follow-up to 9c50c69bd2
.
This commit is contained in:
parent
c80730ea4a
commit
9c1ab97c01
@ -70,7 +70,7 @@ if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config)
|
||||
|
||||
# Cookie path should be set to the base path so Discourse's session cookie path
|
||||
# does not get clobbered.
|
||||
Rack::MiniProfiler.config.cookie_path = Discourse.base_path
|
||||
Rack::MiniProfiler.config.cookie_path = Discourse.base_path.presence || "/"
|
||||
|
||||
Rack::MiniProfiler.config.position = 'left'
|
||||
Rack::MiniProfiler.config.backtrace_ignores ||= []
|
||||
|
Loading…
Reference in New Issue
Block a user