1
0
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:
Nathan Guse
2013-09-09 18:19:50 -05:00
parent f30b87519e
commit 6692db892f
3 changed files with 99 additions and 12 deletions

View File

@@ -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;