]> source.dussan.org Git - nextcloud-server.git/commitdiff
rtrim url earlier 33793/head
authorMaxence Lange <maxence@artificial-owl.com>
Thu, 1 Sep 2022 12:32:14 +0000 (11:32 -0100)
committerMaxence Lange <maxence@artificial-owl.com>
Thu, 1 Sep 2022 12:32:14 +0000 (11:32 -0100)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
lib/private/User/User.php

index 78d4a51cf168138c3840fe76e65440550573a153..fd8763f46b9b54b5574401bc2462bcc47484f40a 100644 (file)
@@ -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;
        }