mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/13192] Use ltrim() instead of preg_replace()
PHPBB3-13192
This commit is contained in:
parent
7ba1a96427
commit
e6509aaf60
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ class path_helper
|
|||
}
|
||||
|
||||
// Remove preceding slashes from page name and prepend root path
|
||||
$page = $this->get_phpbb_root_path() . preg_replace('@^(?:([\\/\\\])?)@', '', $page);
|
||||
$page = $this->get_phpbb_root_path() . ltrim($page, '/\\');
|
||||
}
|
||||
|
||||
return $page;
|
||||
|
|
Loading…
Add table
Reference in a new issue