mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Backported Fix #5059 to stable12 by adding sanity checks before using var
Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
parent
0ed02da5dd
commit
fd0c102f24
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ class VerifyUserData extends Job {
|
|||
|
||||
$body = json_decode($response->getBody(), true);
|
||||
|
||||
if ($body['federationId'] === $cloudId) {
|
||||
if (is_array($body) && isset($body['federationId']) && $body['federationId'] === $cloudId) {
|
||||
return $body;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue