mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixes that ‘should’ work.
This commit is contained in:
parent
59f7f15434
commit
2ad9b6dc84
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user