summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-06-10 15:22:03 +0200
committerGitHub <noreply@github.com>2022-06-10 15:22:03 +0200
commitfe45eaca3b7f6e04c0ff8e52c8f900fc083badc0 (patch)
tree2fe105af2a419ff7059e2302b8e6b8ec7d6f573d /lib
parent142b32c51ab00f3655bb8b9dc0dbd6b4f6843697 (diff)
parent550258200bbb4ea1bad02b15b94f96c6b32027e2 (diff)
downloadnextcloud-server-fe45eaca3b7f6e04c0ff8e52c8f900fc083badc0.tar.gz
nextcloud-server-fe45eaca3b7f6e04c0ff8e52c8f900fc083badc0.zip
Merge pull request #32748 from nextcloud/bugfix/noid/keep-non-default-protocol-in-cloud-id
Keep non default protocol in cloud id
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/User.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index de9af35f541..c5306d1df27 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -555,15 +555,9 @@ class User implements IUser {
return $uid . '@' . $server;
}
- /**
- * @param string $url
- * @return string
- */
- private function removeProtocolFromUrl($url) {
+ private function removeProtocolFromUrl(string $url): string {
if (strpos($url, 'https://') === 0) {
return substr($url, strlen('https://'));
- } elseif (strpos($url, 'http://') === 0) {
- return substr($url, strlen('http://'));
}
return $url;