Skip to content

Commit 72e9965

Browse files
authored
Switch to hash_equals (#49721)
1 parent 158767f commit 72e9965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public function hasSameHash($firstFile, $secondFile)
546546
{
547547
$hash = @md5_file($firstFile);
548548

549-
return $hash && $hash === @md5_file($secondFile);
549+
return $hash && hash_equals($hash, (string) @md5_file($secondFile));
550550
}
551551

552552
/**

0 commit comments

Comments
 (0)