diff options
| author | Nils Adermann <naderman@naderman.de> | 2011-08-30 01:15:43 -0400 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 15:42:49 +0200 |
| commit | 6ea6d50ccb9607429486a01d3144c7d32322e1b5 (patch) | |
| tree | 4e81742c0f0a158b49cf7b62821d8f58fbc02626 /phpBB/includes/extension/finder.php | |
| parent | 6c6a7d7992460e301615bcc1e13bee92ecc65724 (diff) | |
| download | forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.gz forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.bz2 forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.tar.xz forums-6ea6d50ccb9607429486a01d3144c7d32322e1b5.zip | |
[feature/extension-manager] Don't cache the phpbb_root_path in the ext manager
Otherwise the paths are incorrect from e.g. adm/
PHPBB3-10323
Diffstat (limited to 'phpBB/includes/extension/finder.php')
| -rw-r--r-- | phpBB/includes/extension/finder.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/extension/finder.php b/phpBB/includes/extension/finder.php index ee08b0a82a..9a0727a50c 100644 --- a/phpBB/includes/extension/finder.php +++ b/phpBB/includes/extension/finder.php @@ -161,6 +161,8 @@ class phpbb_extension_finder */ public function directory($directory) { + $directory = preg_replace('#(?:^|/)\./#', '/', $directory); + if (strlen($directory) > 1 && $directory[strlen($directory) - 1] === '/') { $directory = substr($directory, 0, -1); |
