From 8d9fb27edc01522bffd8cf83826f97d92903136f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 28 Apr 2014 23:10:50 +0200 Subject: [ticket/12273] Do not look in extensions docs/ and tests/ directory PHPBB3-12273 --- phpBB/phpbb/event/recursive_event_filter_iterator.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/event/recursive_event_filter_iterator.php b/phpBB/phpbb/event/recursive_event_filter_iterator.php index 970c4bbd04..ef2f2ec0ed 100644 --- a/phpBB/phpbb/event/recursive_event_filter_iterator.php +++ b/phpBB/phpbb/event/recursive_event_filter_iterator.php @@ -55,6 +55,7 @@ class recursive_event_filter_iterator extends \RecursiveFilterIterator && $filename[0] !== '.' && strpos($relative_path, $this->root_path . 'cache/') !== 0 && strpos($relative_path, $this->root_path . 'develop/') !== 0 + && strpos($relative_path, $this->root_path . 'docs/') !== 0 && strpos($relative_path, $this->root_path . 'ext/') !== 0 && strpos($relative_path, $this->root_path . 'files/') !== 0 && strpos($relative_path, $this->root_path . 'includes/utf/') !== 0 @@ -62,6 +63,7 @@ class recursive_event_filter_iterator extends \RecursiveFilterIterator && strpos($relative_path, $this->root_path . 'phpbb/db/migration/data/') !== 0 && strpos($relative_path, $this->root_path . 'phpbb/event/') !== 0 && strpos($relative_path, $this->root_path . 'store/') !== 0 + && strpos($relative_path, $this->root_path . 'tests/') !== 0 && strpos($relative_path, $this->root_path . 'vendor/') !== 0 ; } -- cgit v1.2.1