mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-03 14:17:56 +02:00
[ticket/13073] Use just one regex in helper route()
PHPBB3-13073
This commit is contained in:
parent
eaef881e7d
commit
4186ced479
@ -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…
x
Reference in New Issue
Block a user