Skip to content

Commit e906134

Browse files
authored
Merge pull request nextcloud#51060 from nextcloud/backport/51050/stable29
[stable29] fix: Report duplicated extra files in integrity check
2 parents d8040d7 + 7588237 commit e906134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/IntegrityCheck/Checker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ private function verify(string $signaturePath, string $basePath, string $certifi
356356

357357
// Compare the list of files which are not identical
358358
$currentInstanceHashes = $this->generateHashes($this->getFolderIterator($basePath), $basePath);
359-
$differencesA = array_diff($expectedHashes, $currentInstanceHashes);
360-
$differencesB = array_diff($currentInstanceHashes, $expectedHashes);
359+
$differencesA = array_diff_assoc($expectedHashes, $currentInstanceHashes);
360+
$differencesB = array_diff_assoc($currentInstanceHashes, $expectedHashes);
361361
$differences = array_unique(array_merge($differencesA, $differencesB));
362362
$differenceArray = [];
363363
foreach ($differences as $filename => $hash) {

0 commit comments

Comments
 (0)