don't load plugins whose filename start with a .

This commit is contained in:
terrafrost 2021-04-09 10:55:50 -05:00
parent d369510df0
commit b7eaee4977

View File

@ -351,6 +351,9 @@ abstract class AsymmetricKey
continue;
}
$name = $file->getBasename('.php');
if ($name[0] == '.') {
continue;
}
$type = 'phpseclib3\Crypt\\' . static::ALGORITHM . '\\Formats\\' . $format . '\\' . $name;
$reflect = new \ReflectionClass($type);
if ($reflect->isTrait()) {