Skip to content

Commit 2afb6ed

Browse files
authored
Merge pull request nextcloud#51050 from nextcloud/artonge/fix/extra_files_integrity_check
fix: Report duplicated extra files in integrity check
2 parents f9ed34f + cdd00bf commit 2afb6ed

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
@@ -335,8 +335,8 @@ private function verify(string $signaturePath, string $basePath, string $certifi
335335

336336
// Compare the list of files which are not identical
337337
$currentInstanceHashes = $this->generateHashes($this->getFolderIterator($basePath), $basePath);
338-
$differencesA = array_diff($expectedHashes, $currentInstanceHashes);
339-
$differencesB = array_diff($currentInstanceHashes, $expectedHashes);
338+
$differencesA = array_diff_assoc($expectedHashes, $currentInstanceHashes);
339+
$differencesB = array_diff_assoc($currentInstanceHashes, $expectedHashes);
340340
$differences = array_unique(array_merge($differencesA, $differencesB));
341341
$differenceArray = [];
342342
foreach ($differences as $filename => $hash) {

0 commit comments

Comments
 (0)