aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-09-12 09:34:32 -0400
committerGitHub <noreply@github.com>2024-09-12 09:34:32 -0400
commit56c744d26322a379891d3a4a9096a620c44f4e47 (patch)
tree6ca7c7dbcfa528a64416026eac6a2df661936c26
parentb6c286640f3fe4ab9eef8817e093a0403189f40c (diff)
parent2e73932c8e60fc16575c6a2056c7228270d04660 (diff)
downloadnextcloud-server-56c744d26322a379891d3a4a9096a620c44f4e47.tar.gz
nextcloud-server-56c744d26322a379891d3a4a9096a620c44f4e47.zip
Merge pull request #47527 from nextcloud/fix-sftp-custom-port-ui
fix(files_external): Handling in SFTP UI for custom ports
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SFTP.php b/apps/files_external/lib/Lib/Backend/SFTP.php
index c3625f97087..93a5d87a5ff 100644
--- a/apps/files_external/lib/Lib/Backend/SFTP.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP.php
@@ -20,6 +20,8 @@ class SFTP extends Backend {
->setText($l->t('SFTP'))
->addParameters([
new DefinitionParameter('host', $l->t('Host')),
+ (new DefinitionParameter('port', $l->t('Port')))
+ ->setFlag(DefinitionParameter::FLAG_OPTIONAL),
(new DefinitionParameter('root', $l->t('Root')))
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
])