Skip to content

Commit

Permalink
SFTP: Check for the correct key type
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedberg authored and terrafrost committed May 28, 2021
1 parent 7aab21d commit cfe43e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Net/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function login($username, ...$args)
foreach ($args as &$arg) {
if ($arg instanceof RSA) {
$arg = $arg->getKeyObject();
if (!$arg instanceof \phpseclib2\Crypt\Common\PrivateKey) {
if (!$arg instanceof \phpseclib3\Crypt\Common\PrivateKey) {
return false;
}
}
Expand Down

1 comment on commit cfe43e2

@terrafrost
Copy link
Member

Choose a reason for hiding this comment

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

See #7

Please sign in to comment.