mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12099] Prepend ./ to path to fix assets
PHPBB3-12099
This commit is contained in:
parent
edc5908e48
commit
1a6d8dd94d
1 changed files with 4 additions and 2 deletions
|
@ -158,7 +158,7 @@ class path_helper
|
||||||
*/
|
*/
|
||||||
if ($path_info === '/' && preg_match('/app\.' . $this->php_ext . '\/$/', $request_uri))
|
if ($path_info === '/' && preg_match('/app\.' . $this->php_ext . '\/$/', $request_uri))
|
||||||
{
|
{
|
||||||
return $this->web_root_path = $this->filesystem->clean_path('../' . $this->phpbb_root_path);
|
return $this->web_root_path = $this->filesystem->clean_path('./../' . $this->phpbb_root_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -184,7 +184,9 @@ class path_helper
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepend ../ to the phpbb_root_path as many times as / exists in path_info
|
// Prepend ../ to the phpbb_root_path as many times as / exists in path_info
|
||||||
$this->web_root_path = $this->filesystem->clean_path(str_repeat('../', $corrections) . $this->phpbb_root_path);
|
$this->web_root_path = $this->filesystem->clean_path(
|
||||||
|
'./' . str_repeat('../', $corrections) . $this->phpbb_root_path
|
||||||
|
);
|
||||||
return $this->web_root_path;
|
return $this->web_root_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue