Bug 34478: (follow-up) Remove check_csrf from pl files
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
17ec52961c
commit
bc2bb89930
2 changed files with 0 additions and 17 deletions
|
@ -117,11 +117,6 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $debits or $is_guarantor ) {
|
|||
);
|
||||
|
||||
} elsif ( $op eq 'cud-delete_confirmed' ) {
|
||||
output_and_exit( $input, $cookie, $template, 'wrong_csrf_token' )
|
||||
unless Koha::Token->new->check_csrf( {
|
||||
session_id => $input->cookie('CGISESSID'),
|
||||
token => scalar $input->param('csrf_token'),
|
||||
});
|
||||
|
||||
my $patron = Koha::Patrons->find( $member );
|
||||
|
||||
|
|
|
@ -87,12 +87,6 @@ our %errors = ();
|
|||
# Case is important in these operational values as the template must use case to be visually pleasing!
|
||||
if ( ( $op eq 'cud-Upload' ) && ($uploadfile || $uploadfiletext) ) {
|
||||
|
||||
output_and_exit( $input, $cookie, $template, 'wrong_csrf_token' )
|
||||
unless Koha::Token->new->check_csrf({
|
||||
session_id => scalar $input->cookie('CGISESSID'),
|
||||
token => scalar $input->param('csrf_token'),
|
||||
});
|
||||
|
||||
my $dirname = File::Temp::tempdir( CLEANUP => 1 );
|
||||
my $filesuffix;
|
||||
if ( $uploadfilename =~ m/(\..+)$/i ) {
|
||||
|
@ -191,12 +185,6 @@ elsif ( ( $op eq 'cud-Upload' ) && !$uploadfile ) {
|
|||
$template->param( filetype => $filetype );
|
||||
}
|
||||
elsif ( $op eq 'Delete' ) {
|
||||
output_and_exit( $input, $cookie, $template, 'wrong_csrf_token' )
|
||||
unless Koha::Token->new->check_csrf({
|
||||
session_id => scalar $input->cookie('CGISESSID'),
|
||||
token => scalar $input->param('csrf_token'),
|
||||
});
|
||||
|
||||
my $deleted = eval {
|
||||
Koha::Patron::Images->find( $borrowernumber )->delete;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue