1
0
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:
Marc Alexander
2015-01-10 12:46:40 +01:00
parent 7ba1a96427
commit e6509aaf60

View File

@@ -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;