diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-06-27 14:59:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 14:59:19 +0200 |
commit | 00aa8f543841c6bfd853a3ac5cb4ff3ab0a058ae (patch) | |
tree | b47151ce86cfd6c5ea2ea3313c6775406e4ad1ca /apps | |
parent | 1b49c864808dd95d069cf4ffe4c3fb1794aa8ca8 (diff) | |
parent | 280d70a5f42309b28df0baf675893abed2a391a2 (diff) | |
download | nextcloud-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.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]; |