mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
filter index.php from cloudId
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
9689f734e8
commit
c4bdc1cfbc
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue