diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2022-09-15 10:46:39 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 10:46:39 -0100 |
commit | 381eb046b504b8adf133ded0ec5502d26fbf76fb (patch) | |
tree | a502f6f14ffbac3218d39487c684a84ebbf01b94 /lib/private/User | |
parent | ee183efd46a7b0194cc1e6581363cfbe39a0bf54 (diff) | |
parent | c37bad1ce424fd1b478788e5bc22e0d7a48bfe30 (diff) | |
download | nextcloud-server-381eb046b504b8adf133ded0ec5502d26fbf76fb.tar.gz nextcloud-server-381eb046b504b8adf133ded0ec5502d26fbf76fb.zip |
Merge pull request #33793 from nextcloud/fix/noid/rtrim-cloud-id
rtrim cloudId url earlier
Diffstat (limited to 'lib/private/User')
-rw-r--r-- | lib/private/User/User.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index f5d93dcd680..eda6b5f79d9 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -558,11 +558,11 @@ class User implements IUser { */ public function getCloudId() { $uid = $this->getUID(); - $server = $this->urlGenerator->getAbsoluteURL('/'); + $server = rtrim($this->urlGenerator->getAbsoluteURL('/'), '/'); if (substr($server, -10) === '/index.php') { $server = substr($server, 0, -10); } - $server = rtrim($this->removeProtocolFromUrl($server), '/'); + $server = $this->removeProtocolFromUrl($server); return $uid . '@' . $server; } |