aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-01-10 12:46:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-01-10 12:46:40 +0100
commite6509aaf606264414f30248afd1081ff05207328 (patch)
tree8fbe46410fc43ba2b3c4936ac7a069c2ed9beabd
parent7ba1a9642715945f7e2641cfda7e1d188ef2a8d2 (diff)
downloadforums-e6509aaf606264414f30248afd1081ff05207328.tar
forums-e6509aaf606264414f30248afd1081ff05207328.tar.gz
forums-e6509aaf606264414f30248afd1081ff05207328.tar.bz2
forums-e6509aaf606264414f30248afd1081ff05207328.tar.xz
forums-e6509aaf606264414f30248afd1081ff05207328.zip
[ticket/13192] Use ltrim() instead of preg_replace()
PHPBB3-13192
-rw-r--r--phpBB/phpbb/path_helper.php2
1 files changed, 1 insertions, 1 deletions
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;