filter index.php from cloudId

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2022-08-31 18:33:09 -01:00
parent 9689f734e8
commit c4bdc1cfbc

View file

@ -556,6 +556,9 @@ class User implements IUser {
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;
}