diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2022-08-31 18:33:09 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2022-08-31 18:33:09 -0100 |
commit | c4bdc1cfbc546732e7f1f41b272039311785bc6f (patch) | |
tree | bfaa2357b3c8f394e3b90194953de5c1cef106b0 /lib | |
parent | 9689f734e8774232bac345ad71fa700306c46312 (diff) | |
download | nextcloud-server-c4bdc1cfbc546732e7f1f41b272039311785bc6f.tar.gz nextcloud-server-c4bdc1cfbc546732e7f1f41b272039311785bc6f.zip |
filter index.php from cloudId
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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; } |