mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/14440] Correctly remove the web root path in update_web_root_path
PHPBB3-14440
This commit is contained in:
parent
03fba99074
commit
7ec6dd75f3
1 changed files with 7 additions and 1 deletions
|
@ -100,11 +100,17 @@ class path_helper
|
|||
*/
|
||||
public function update_web_root_path($path)
|
||||
{
|
||||
$web_root_path = $this->get_web_root_path();
|
||||
|
||||
if (strpos($path, $web_root_path) === 0)
|
||||
{
|
||||
$path = $this->phpbb_root_path . substr($path, strlen($web_root_path));
|
||||
}
|
||||
|
||||
if (strpos($path, $this->phpbb_root_path) === 0)
|
||||
{
|
||||
$path = substr($path, strlen($this->phpbb_root_path));
|
||||
|
||||
$web_root_path = $this->get_web_root_path();
|
||||
if (substr($web_root_path, -8) === 'app.php/' && substr($path, 0, 7) === 'app.php')
|
||||
{
|
||||
$path = substr($path, 8);
|
||||
|
|
Loading…
Add table
Reference in a new issue