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:
parent
d369510df0
commit
b7eaee4977
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user