From e6509aaf606264414f30248afd1081ff05207328 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 10 Jan 2015 12:46:40 +0100 Subject: [ticket/13192] Use ltrim() instead of preg_replace() PHPBB3-13192 --- phpBB/phpbb/path_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB') diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php index b2ec9d98e0..6feb64b07e 100644 --- a/phpBB/phpbb/path_helper.php +++ b/phpBB/phpbb/path_helper.php @@ -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; -- cgit v1.2.1