Skip to content

Commit 5dfea62

Browse files
Merge pull request #57995 from nextcloud/backport/57793/stable31
2 parents e80c6a7 + 710b187 commit 5dfea62

File tree

1 file changed

+1
-1
lines changed
  • apps/files_external/lib/Lib/Storage

1 file changed

+1
-1
lines changed

apps/files_external/lib/Lib/Storage/SFTP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(array $parameters) {
6464
$parsedHost = $this->splitHost($parameters['host']);
6565

6666
$this->host = $parsedHost[0];
67-
$this->port = $parsedHost[1];
67+
$this->port = $parameters['port'] ?? $parsedHost[1];
6868

6969
if (!isset($parameters['user'])) {
7070
throw new \UnexpectedValueException('no authentication parameters specified');

0 commit comments

Comments
 (0)