mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge remote-tracking branch 'naderman/ticket/10663' into develop
* naderman/ticket/10663: [ticket/10663] Extension finder should not find subdirs with directory filter [ticket/10663] Adding nested directory to finder test
This commit is contained in:
commit
dd160e19a2
2 changed files with 4 additions and 0 deletions
|
@ -375,6 +375,10 @@ class phpbb_extension_finder
|
|||
{
|
||||
$directory_pattern = preg_quote(DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $directory) . DIRECTORY_SEPARATOR, '#');
|
||||
}
|
||||
if ($is_dir)
|
||||
{
|
||||
$directory_pattern .= '$';
|
||||
}
|
||||
$directory_pattern = '#' . $directory_pattern . '#';
|
||||
|
||||
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
|
||||
|
|
0
tests/extension/ext/foo/type/dummy/empty.txt
Normal file
0
tests/extension/ext/foo/type/dummy/empty.txt
Normal file
Loading…
Add table
Reference in a new issue