This commit is contained in:
as2252258@163.com
2021-05-02 04:46:21 +08:00
parent c44fb76b59
commit 77399fa68f
2 changed files with 5 additions and 14 deletions
+1 -4
View File
@@ -235,10 +235,7 @@ class Loader extends BaseObject
$path = '/' . trim($path, '/');
foreach ($this->_directory as $key => $_path) {
$key = '/' . trim($key, '/');
if (!str_starts_with($key, $path)) {
continue;
}
if (in_array($key, $outPath)) {
if (!str_starts_with($key, $path) || in_array($key, $outPath)) {
continue;
}
$this->execute($_path);