diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-06-10 15:22:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 15:22:03 +0200 |
commit | fe45eaca3b7f6e04c0ff8e52c8f900fc083badc0 (patch) | |
tree | 2fe105af2a419ff7059e2302b8e6b8ec7d6f573d /lib | |
parent | 142b32c51ab00f3655bb8b9dc0dbd6b4f6843697 (diff) | |
parent | 550258200bbb4ea1bad02b15b94f96c6b32027e2 (diff) | |
download | nextcloud-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.php | 8 |
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; |