aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-06-26 10:40:31 +0200
committerJoas Schilling <coding@schilljs.com>2024-06-27 11:26:08 +0200
commit280d70a5f42309b28df0baf675893abed2a391a2 (patch)
treed13cfa72cc6958f85eea11322cfa9c89d164b7d2 /apps/federatedfilesharing
parent5dcb807a98a9863f7d730c3f190e85311eda512b (diff)
downloadnextcloud-server-280d70a5f42309b28df0baf675893abed2a391a2.tar.gz
nextcloud-server-280d70a5f42309b28df0baf675893abed2a391a2.zip
fix(federation): Fix missing protocol on CloudID remote
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing')
-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];