mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/11362] Replace other calls to phpbb_clean_path
Need to instantiate the object manually here, as the container is not yet set up. PHPBB3-11362
This commit is contained in:
parent
158bce0209
commit
d7fb934a2f
1 changed files with 4 additions and 1 deletions
|
@ -44,8 +44,11 @@ if (!defined('PHPBB_INSTALLED'))
|
|||
// Replace any number of consecutive backslashes and/or slashes with a single slash
|
||||
// (could happen on some proxy setups and/or Windows servers)
|
||||
$script_path = preg_replace('#[\\\\/]{2,}#', '/', $script_path);
|
||||
|
||||
// Eliminate . and .. from the path
|
||||
$script_path = phpbb_clean_path($script_path);
|
||||
require($phpbb_root_path . 'includes/filesystem.' . $phpEx);
|
||||
$phpbb_filesystem = new phpbb_filesystem();
|
||||
$script_path = $phpbb_filesystem->clean_path($script_path);
|
||||
|
||||
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue