From e48f871bd0bfb392078cd2d9ba7807c263b68b02 Mon Sep 17 00:00:00 2001 From: pac0san <7056343+pac0san@users.noreply.github.com> Date: Sun, 25 Jan 2026 18:13:21 +0100 Subject: [PATCH] fix(files_external): Respect explicit port configuration It allows the use of the alternative SFTP port defined in the GUI (external storage), instead of the default port (22). Signed-off-by: pac0san <7056343+pac0san@users.noreply.github.com> Signed-off-by: provokateurin --- apps/files_external/lib/Lib/Storage/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index a2f5bafcca1e8..e275e5b497b08 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -70,7 +70,7 @@ public function __construct(array $parameters) { $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');