Skip to content

Commit

Permalink
Merge pull request #33780 from nextcloud/enh/noid/cloud-id-cli
Browse files Browse the repository at this point in the history
filter index.php from cloudId
  • Loading branch information
blizzz authored Sep 1, 2022
2 parents 3ae4397 + c4bdc1c commit 2020c15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ public function getAvatarImage($size) {
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;
}
Expand Down

0 comments on commit 2020c15

Please sign in to comment.