Skip to content

Commit bdfe99c

Browse files
authored
(fix) upgrade find view from hash (#1415)
1 parent 92e31a5 commit bdfe99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ protected function findViewFromHash($hash)
393393
}
394394

395395
foreach ($property->getValue($finder) as $name => $path) {
396-
if (sha1($path) == $hash || md5($path) == $hash) {
396+
if (hash('xxh128', 'v2' . $path) == $hash || sha1('v2' . $path) == $hash) {
397397
return $name;
398398
}
399399
}

0 commit comments

Comments
 (0)