Skip to content

Commit

Permalink
Merge pull request #44030 from nextcloud/backport/43764/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(user_ldap): Ignore unserialize error in group membership migration
  • Loading branch information
come-nc committed Mar 6, 2024
2 parents 3991365 + 17173d3 commit d046bf6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ protected function copyGroupMembershipData(): void {
$result = $query->executeQuery();
while ($row = $result->fetch()) {
$knownUsers = unserialize($row['owncloudusers']);
if (!is_array($knownUsers)) {
/* Unserialize failed or data was incorrect in database, ignore */
continue;
}
$knownUsers = array_unique($knownUsers);
foreach ($knownUsers as $knownUser) {
try {
Expand Down

0 comments on commit d046bf6

Please sign in to comment.