From c088efd6c959d12dd8c1743e3eeb9f12d41a77e2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Sep 2018 16:10:56 -0700 Subject: [PATCH] Bug 21323: Handle multi params in redirect after login MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Multi params are not handle correctly after login Test plan: [0] Use staff interface [1] Use advance search and tick itemtype more than one checkbox [2] Copy result url [3] Logout [4] Paste url in browser [5] Type username and password [6] In search result page, results limit description under breadcrumbs will show all limits Signed-off-by: Séverine QUEUNE Signed-off-by: Julian Maurice Signed-off-by: Nick Clemens (cherry picked from commit c6a26d2c9e767623c7bc0698297bbc165301e7ed) Signed-off-by: Martin Renvoize --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index cb74cb2d50..6b803487ae 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1217,8 +1217,8 @@ sub checkauth { my @inputs = (); foreach my $name ( param $query) { (next) if ( $name eq 'userid' || $name eq 'password' || $name eq 'ticket' ); - my $value = $query->param($name); - push @inputs, { name => $name, value => $value }; + my @value = $query->multi_param($name); + push @inputs, { name => $name, value => $_ } for @value; } my $patron = Koha::Patrons->find({ userid => $q_userid }); # Not necessary logged in! -- 2.39.5