mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/11832] update_web_root_path helper and tests
PHPBB3-11832
This commit is contained in:
@@ -2419,12 +2419,9 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false)
|
||||
$params = false;
|
||||
}
|
||||
|
||||
// Update the root path with the correct relative web path
|
||||
$phpbb_filesystem = $phpbb_container->get('filesystem');
|
||||
$corrected_path = $phpbb_filesystem->get_web_root_path($symfony_request);
|
||||
if ($corrected_path)
|
||||
{
|
||||
$url = substr($corrected_path . $url, strlen($phpbb_root_path));
|
||||
}
|
||||
$url = $phpbb_filesystem->update_web_root_path($url, $symfony_request);
|
||||
|
||||
$append_sid_overwrite = false;
|
||||
|
||||
|
Reference in New Issue
Block a user