Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Fix hashFile function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Nov 9, 2018
1 parent 191bcdf commit 80a5944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.0
2.9.1
2 changes: 1 addition & 1 deletion src/Renderer/Twig/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function readtime($text)
public function hashFile($path)
{
if (is_file($filePath = $this->destPath.'/'.$path)) {
return sprintf('sha384-%s', hash_file('sha384', $filePath));
return sprintf('sha384-%s', base64_encode(hash_file('sha384', $filePath, true)));
}
}
}

0 comments on commit 80a5944

Please sign in to comment.