diff --git a/lib/Controller/RevaController.php b/lib/Controller/RevaController.php index 8a903f09..ce6d5a95 100644 --- a/lib/Controller/RevaController.php +++ b/lib/Controller/RevaController.php @@ -121,6 +121,7 @@ private function init($userId) private function getDomainFromURL($url) { // converts https://revaowncloud1.docker/ to revaowncloud1.docker + // Note, DO not use it on anything whithout http(s) in the start, it would return null. return str_ireplace("www.", "", parse_url($url, PHP_URL_HOST)); } @@ -438,7 +439,7 @@ private function formatFederatedUser($username, $remote) { return [ "id" => [ - "idp" => $this->getDomainFromURL($remote), + "idp" => $remote, "opaque_id" => $username, ], "display_name" => $username, // FIXME: this comes in the OCM share payload