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

(-)a/Koha/Middleware/CSRF.pm (-2 / +2 lines)
Lines 78-84 sub call { Link Here
78
        }
78
        }
79
    }
79
    }
80
80
81
    if ( $error ) {
81
    if ($error) {
82
82
        #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
83
        warn $error;
84
        warn $error;
84
        my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] );
85
        my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] );
85
- 

Return to bug 37040