mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Change to safer hash methods.
This commit is contained in:
@@ -101,8 +101,8 @@ class CacheProperties
|
||||
{
|
||||
$content = '';
|
||||
foreach ($this->properties as $property) {
|
||||
$content .= json_encode($property);
|
||||
$content .= json_encode($property, JSON_THROW_ON_ERROR, 512);
|
||||
}
|
||||
$this->hash = substr(sha1($content), 0, 16);
|
||||
$this->hash = substr(hash('sha256', $content), 0, 16);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user