Skip to content

Commit cfe43e2

Browse files
dhedbergterrafrost
authored andcommitted
SFTP: Check for the correct key type
1 parent 7aab21d commit cfe43e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Net/SFTP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function login($username, ...$args)
5757
foreach ($args as &$arg) {
5858
if ($arg instanceof RSA) {
5959
$arg = $arg->getKeyObject();
60-
if (!$arg instanceof \phpseclib2\Crypt\Common\PrivateKey) {
60+
if (!$arg instanceof \phpseclib3\Crypt\Common\PrivateKey) {
6161
return false;
6262
}
6363
}

0 commit comments

Comments
 (0)