Skip to content

Commit aab8dd9

Browse files
rjocolemancarlalexander
authored andcommitted
disable SftpConnectionProvider agent support if password specified
1 parent 8e77411 commit aab8dd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/Import/ImportUploadsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private function getAdapter(string $path): FilesystemAdapter
192192
);
193193
} elseif ('sftp' === $parsedPath['scheme']) {
194194
return new SftpAdapter(
195-
new SftpConnectionProvider($parsedPath['host'], $parsedPath['user'] ?? get_current_user(), $parsedPath['pass'] ?? null, null, null, $parsedPath['port'] ?? 22, true),
195+
new SftpConnectionProvider($parsedPath['host'], $parsedPath['user'] ?? get_current_user(), $parsedPath['pass'] ?? null, null, null, $parsedPath['port'] ?? 22, $parsedPath['pass'] ? false : true),
196196
$parsedPath['path'] ?? '/'
197197
);
198198
}

0 commit comments

Comments
 (0)