[libplack-middleware-csrfblock-perl] 01/03: digest-sha(1) patch: use the right module
gregor herrmann
gregoa at debian.org
Tue May 12 20:21:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libplack-middleware-csrfblock-perl.
commit 420e8b432477eeb2f03dcddf1af1629691e3fecf
Author: gregor herrmann <gregoa at debian.org>
Date: Tue May 12 22:17:12 2015 +0200
digest-sha(1) patch: use the right module
whithout this we got test failures
Git-Dch: Ignore
---
debian/patches/use-core-digest-sha.patch | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/patches/use-core-digest-sha.patch b/debian/patches/use-core-digest-sha.patch
index 74a3406..11a5cb6 100644
--- a/debian/patches/use-core-digest-sha.patch
+++ b/debian/patches/use-core-digest-sha.patch
@@ -45,3 +45,12 @@ Forwarded: no
use Time::HiRes qw(time);
use HTML::Parser;
use Plack::Request;
+@@ -30,7 +30,7 @@
+ $self->header_name($header_name);
+
+ $self->_token_generator(sub {
+- my $token = Digest::SHA1::sha1_hex(rand() . $$ . {} . time);
++ my $token = Digest::SHA::sha1_hex(rand() . $$ . {} . time);
+ substr($token, 0 , $self->token_length);
+ });
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libplack-middleware-csrfblock-perl.git
More information about the Pkg-perl-cvs-commits
mailing list