Skip to content

Commit

Permalink
Crypt/AsymmetricKey: loading hidden custom key plugins didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Dec 27, 2023
1 parent d2cd758 commit 4bdfec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Crypt/Common/AsymmetricKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public static function addFileFormat($fullname)
$shortname = $meta->getShortName();
self::$plugins[static::ALGORITHM]['Keys'][strtolower($shortname)] = $fullname;
if ($meta->hasConstant('IS_INVISIBLE')) {
self::$invisiblePlugins[static::ALGORITHM] = strtolower($name);
self::$invisiblePlugins[static::ALGORITHM][] = strtolower($shortname);
}
}
}
Expand Down

1 comment on commit 4bdfec9

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1971

Please sign in to comment.