mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #33793 from nextcloud/fix/noid/rtrim-cloud-id
rtrim cloudId url earlier
This commit is contained in:
commit
381eb046b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue