mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 03:16:02 +00: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;
|
continue;
|
||||||
}
|
}
|
||||||
$name = $file->getBasename('.php');
|
$name = $file->getBasename('.php');
|
||||||
|
if ($name[0] == '.') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$type = 'phpseclib3\Crypt\\' . static::ALGORITHM . '\\Formats\\' . $format . '\\' . $name;
|
$type = 'phpseclib3\Crypt\\' . static::ALGORITHM . '\\Formats\\' . $format . '\\' . $name;
|
||||||
$reflect = new \ReflectionClass($type);
|
$reflect = new \ReflectionClass($type);
|
||||||
if ($reflect->isTrait()) {
|
if ($reflect->isTrait()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user