We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80c6a7 + 710b187 commit 5dfea62Copy full SHA for 5dfea62
apps/files_external/lib/Lib/Storage/SFTP.php
@@ -64,7 +64,7 @@ public function __construct(array $parameters) {
64
$parsedHost = $this->splitHost($parameters['host']);
65
66
$this->host = $parsedHost[0];
67
- $this->port = $parsedHost[1];
+ $this->port = $parameters['port'] ?? $parsedHost[1];
68
69
if (!isset($parameters['user'])) {
70
throw new \UnexpectedValueException('no authentication parameters specified');
0 commit comments