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