Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
🔒️ Fix a security risk (Coverage)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thecode764 committed Jun 8, 2024
1 parent 2e36cd4 commit 16503e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mirror/directory-lister/app/src/ViewFunctions/Markdown.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

namespace App\ViewFunctions;

use ParsedownExtra;
Expand All @@ -18,7 +17,7 @@ public function __construct(
public function __invoke(string $string): string
{
return $this->cache->get(
sprintf('markdown-%s', sha1($string)),
sprintf('markdown-%s', sha256($string)),
function () use ($string): string {
return $this->parser->parse($string);
}
Expand Down

0 comments on commit 16503e9

Please sign in to comment.