diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-09-01 14:35:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 14:35:50 +0300 |
commit | 2020c153037649b72fc33118f26c9ecea7dcf709 (patch) | |
tree | 35e82afd3ceb937e4d0ca2fe2976f30eeb77afb0 /lib | |
parent | 3ae439710e76de6916584ada18a5baea9838e300 (diff) | |
parent | c4bdc1cfbc546732e7f1f41b272039311785bc6f (diff) |
Merge pull request #33780 from nextcloud/enh/noid/cloud-id-cli
filter index.php from cloudId
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/User.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index 7f7d6273e30..78d4a51cf16 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -556,6 +556,9 @@ class User implements IUser { public function getCloudId() { $uid = $this->getUID(); $server = $this->urlGenerator->getAbsoluteURL('/'); + if (substr($server, -10) === '/index.php') { + $server = substr($server, 0, -10); + } $server = rtrim($this->removeProtocolFromUrl($server), '/'); return $uid . '@' . $server; } |