summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 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;
}