mirror of
https://github.com/getgrav/grav.git
synced 2026-07-09 12:02:35 +02:00
Fixes that ‘should’ work.
This commit is contained in:
@@ -40,7 +40,7 @@ class Session extends BaseSession
|
||||
$session_timeout = $config->get('system.session.timeout', 1800);
|
||||
$session_path = $config->get('system.session.path');
|
||||
if (!$session_path) {
|
||||
$session_path = '/' . ltrim($base_url, '/');
|
||||
$session_path = '/' . ltrim(Uri::filterPath($base_url), '/');
|
||||
}
|
||||
|
||||
// Activate admin if we're inside the admin path.
|
||||
|
||||
@@ -985,7 +985,7 @@ class Uri
|
||||
|
||||
// Handle route only
|
||||
if ($route_only) {
|
||||
$url_path = str_replace($base_url, '', $url_path);
|
||||
$url_path = str_replace(static::filter($base_url), '', $url_path);
|
||||
}
|
||||
|
||||
// transform back to string/array as needed
|
||||
|
||||
Reference in New Issue
Block a user