summaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-09-01 11:32:14 -0100
committerMaxence Lange <maxence@artificial-owl.com>2022-09-01 11:32:14 -0100
commitc37bad1ce424fd1b478788e5bc22e0d7a48bfe30 (patch)
tree84afc430911d3c889f538d3374f32594a5523b70 /lib/private/User
parent2020c153037649b72fc33118f26c9ecea7dcf709 (diff)
downloadnextcloud-server-c37bad1ce424fd1b478788e5bc22e0d7a48bfe30.tar.gz
nextcloud-server-c37bad1ce424fd1b478788e5bc22e0d7a48bfe30.zip
rtrim url earlier
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 78d4a51cf16..fd8763f46b9 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -555,11 +555,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;
}