mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13073] Use just one regex in helper route()
PHPBB3-13073
This commit is contained in:
parent
eaef881e7d
commit
4186ced479
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class helper
|
|||
}
|
||||
else
|
||||
{
|
||||
$base_url .= preg_replace('#[\\/\\\]$#', '', preg_replace('#^\.#', '', $this->phpbb_root_path));
|
||||
$base_url .= preg_replace('#^(?:(\.))+(?:(.+)?)+(?:([\\/\\\])$)#', '$2', $this->phpbb_root_path);
|
||||
}
|
||||
|
||||
$base_url = $this->filesystem->clean_path($base_url);
|
||||
|
|
Loading…
Add table
Reference in a new issue