mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13192] Use ltrim() instead of preg_replace()
PHPBB3-13192
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user