From 5557760eccab67515990622471bd5de297e40f1e Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Thu, 11 Feb 2016 22:18:09 +0100 Subject: [PATCH] [ticket/14440] Add comments PHPBB3-14440 --- phpBB/phpbb/path_helper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php index c5e006120a..154361ef64 100644 --- a/phpBB/phpbb/path_helper.php +++ b/phpBB/phpbb/path_helper.php @@ -102,6 +102,7 @@ class path_helper { $web_root_path = $this->get_web_root_path(); + // Removes the web root path if it is already present if (strpos($path, $web_root_path) === 0) { $path = $this->phpbb_root_path . substr($path, strlen($web_root_path));