Merge pull request #57793 from pac0san/patch-1

fix(files_external): Respect explicit port configuration
This commit is contained in:
Stephan Orbaugh 2026-02-02 13:57:44 +01:00 committed by GitHub
commit e10805fb35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ class SFTP extends Common {
$parsedHost = $this->splitHost($parameters['host']);
$this->host = $parsedHost[0];
$this->port = $parsedHost[1];
$this->port = $parameters['port'] ?? $parsedHost[1];
if (!isset($parameters['user'])) {
throw new \UnexpectedValueException('no authentication parameters specified');