From 804310f692e98c8d5c09e697deebe2e715411c49 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 13 Jun 2015 13:36:30 +0300 Subject: [PATCH] Fix experimental warnings --- lib/Apache2/Authen/Passphrase.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Apache2/Authen/Passphrase.pm b/lib/Apache2/Authen/Passphrase.pm index 612e605..5debb55 100644 --- a/lib/Apache2/Authen/Passphrase.pm +++ b/lib/Apache2/Authen/Passphrase.pm @@ -59,7 +59,7 @@ sub pwcheck{ my $conf=LoadFile "$rootdir/$user.yml"; ## no critic (RequireCarping) - die BAD_PASSWORD unless keys $conf; # Empty hash means no such user + die BAD_PASSWORD unless keys %$conf; # Empty hash means no such user die BAD_PASSWORD unless Authen::Passphrase->from_rfc2307($conf->{passphrase})->match($pass); ## use critic pwset $user, $pass if $conf->{passphrase_version} < PASSPHRASE_VERSION -- 2.39.2