mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/11832] Fix constructions of phpbb_filesystem
PHPBB3-11832
This commit is contained in:
@@ -47,7 +47,12 @@ if (!defined('PHPBB_INSTALLED'))
|
||||
|
||||
// Eliminate . and .. from the path
|
||||
require($phpbb_root_path . 'phpbb/filesystem.' . $phpEx);
|
||||
$phpbb_filesystem = new phpbb_filesystem($phpbb_root_path);
|
||||
$phpbb_filesystem = new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_request()
|
||||
),
|
||||
$phpbb_root_path
|
||||
);
|
||||
$script_path = $phpbb_filesystem->clean_path($script_path);
|
||||
|
||||
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
||||
|
Reference in New Issue
Block a user