1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-04 18:48:24 +01:00

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()) {