mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
[ticket/16052] Fix issues caused by merges
PHPBB3-16052
This commit is contained in:
@@ -99,8 +99,8 @@ class session
|
||||
else
|
||||
{
|
||||
// current directory within the phpBB root (for example: adm)
|
||||
$root_dirs = explode('/', str_replace('\\', '/', filesystem_helper::realpath($root_path)));
|
||||
$page_dirs = explode('/', str_replace('\\', '/', filesystem_helper::realpath('./')));
|
||||
$root_dirs = explode('/', str_replace('\\', '/', $phpbb_filesystem->realpath($root_path)));
|
||||
$page_dirs = explode('/', str_replace('\\', '/', $phpbb_filesystem->realpath('./')));
|
||||
}
|
||||
|
||||
$intersection = array_intersect_assoc($root_dirs, $page_dirs);
|
||||
|
Reference in New Issue
Block a user