From 1825c93fe42cdffe641e6ef34c70c69c20dedebe Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 16 Feb 2024 12:29:11 +0000 Subject: [PATCH] Bug 34478: Add notes to pay.pl Signed-off-by: Jonathan Druart --- members/pay.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/members/pay.pl b/members/pay.pl index af492f22e8..aae5711254 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -78,6 +78,10 @@ our $branch = C4::Context->userenv->{'branch'}; my $op = $input->param('op') // q{}; +# FIXME: paycollect, payselected, writeoff_selected, pay_individual and writeoff_individual +# are all stateless actions, but it does no harm to check the csrf here anyway and prevents +# the need for a complete re-write. + if ( $op eq 'cud-paycollect' ) { print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?borrowernumber=$borrowernumber&change_given=$change_given"); -- 2.39.5