Skip to content

Commit

Permalink
Merge pull request #1236 from metacpan/haarg/fix-digest-calc
Browse files Browse the repository at this point in the history
fix digest calculation from misuse or tr
  • Loading branch information
mickeyn authored Jul 15, 2024
2 parents b08ff6f + c3c8e15 commit d3fc66b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lib/MetaCPAN/Server/Controller/CVE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;

use Moose;
use MetaCPAN::Util qw( digest );

BEGIN { extends 'MetaCPAN::Server::Controller' }

Expand Down
1 change: 0 additions & 1 deletion lib/MetaCPAN/Server/Controller/Contributor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;

use Moose;
use MetaCPAN::Util qw( digest );

BEGIN { extends 'MetaCPAN::Server::Controller' }

Expand Down
1 change: 0 additions & 1 deletion lib/MetaCPAN/Server/Controller/Cover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use strict;
use warnings;

use Moose;
use MetaCPAN::Util qw( digest );

BEGIN { extends 'MetaCPAN::Server::Controller' }

Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sub checkout_root {

sub digest {
my $digest = sha1_base64( join( "\0", grep {defined} @_ ) );
$digest =~ tr/[+\/]/-_/;
$digest =~ tr{+/}{-_};
return $digest;
}

Expand Down

0 comments on commit d3fc66b

Please sign in to comment.