aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-06-27 14:59:19 +0200
committerGitHub <noreply@github.com>2024-06-27 14:59:19 +0200
commit00aa8f543841c6bfd853a3ac5cb4ff3ab0a058ae (patch)
treeb47151ce86cfd6c5ea2ea3313c6775406e4ad1ca /apps
parent1b49c864808dd95d069cf4ffe4c3fb1794aa8ca8 (diff)
parent280d70a5f42309b28df0baf675893abed2a391a2 (diff)
downloadnextcloud-server-00aa8f543841c6bfd853a3ac5cb4ff3ab0a058ae.tar.gz
nextcloud-server-00aa8f543841c6bfd853a3ac5cb4ff3ab0a058ae.zip
Merge pull request #46133 from nextcloud/bugfix/noid/fix-missing-protocol-on-remotes
fix(federation): Fix missing protocol on CloudID remote
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/tests/AddressHandlerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index 75dc69dfcee..dc89316746e 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -74,6 +74,11 @@ class AddressHandlerTest extends \Test\TestCase {
foreach ($protocols as $protocol) {
$baseUrl = $user . '@' . $protocol . $remote;
+ if ($protocol === '') {
+ // https:// protocol is expected in the final result
+ $protocol = 'https://';
+ }
+
$testCases[] = [$baseUrl, $user, $protocol . $remote];
$testCases[] = [$baseUrl . '/', $user, $protocol . $remote];
$testCases[] = [$baseUrl . '/index.php', $user, $protocol . $remote];