Skip to content

Commit

Permalink
filter index.php from cloudId
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Aug 31, 2022
1 parent 9689f73 commit c4bdc1c
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 c4bdc1c

Please sign in to comment.