diff options
author | Joas Schilling <coding@schilljs.com> | 2024-06-26 10:40:31 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-06-27 11:26:08 +0200 |
commit | 280d70a5f42309b28df0baf675893abed2a391a2 (patch) | |
tree | d13cfa72cc6958f85eea11322cfa9c89d164b7d2 /apps/federatedfilesharing | |
parent | 5dcb807a98a9863f7d730c3f190e85311eda512b (diff) | |
download | nextcloud-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.php | 5 |
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]; |