From 4719fe7fada2c413f62c94edcfce18a389b747e1 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 5 Sep 2016 15:18:57 -0300 Subject: [PATCH] Bug 16911: (QA followup) CGI->param should not be called in list context Signed-off-by: Tomas Cohen Arazi --- members/member-password.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/member-password.pl b/members/member-password.pl index 43c4489..fd4dd2a 100755 --- a/members/member-password.pl +++ b/members/member-password.pl @@ -72,7 +72,7 @@ if ( $newpassword && !scalar(@errors) ) { token => scalar $input->param('csrf_token'), }); - my $digest = Koha::AuthUtils::hash_password( $input->param('newpassword') ); + my $digest = Koha::AuthUtils::hash_password( scalar $input->param('newpassword') ); my $uid = $input->param('newuserid') || $bor->{userid}; my $dbh = C4::Context->dbh; if ( Koha::Patrons->find( $member )->update_password($uid, $digest) ) { -- 2.7.4