View | Details | Raw Unified | Return to bug 37040
Collapse All | Expand All

(-)a/Koha/Middleware/CSRF.pm (-1 / +1 lines)
Lines 82-87 sub call { Link Here
82
82
83
        #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here
83
        #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here
84
        warn $error;
84
        warn $error;
85
        $env->{'plack.middleware.Koha.CSRF'} = $error if !$env->{'plack.middleware.Koha.CSRF'};
85
        my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] );
86
        my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] );
86
        return $res->finalize;
87
        return $res->finalize;
87
    }
88
    }
88
- 

Return to bug 37040