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

(-)a/Koha/Middleware/CSRF.pm (-1 / +3 lines)
Lines 69-74 sub call { Link Here
69
        }
69
        }
70
    }
70
    }
71
71
72
    #NOTE: It is essential to check for this environmental variable.
73
    #NOTE: If we don't check for it, then we'll also throw an error for the "subrequest" that ErrorDocument uses to
74
    #fetch the error page document. Then we'll wind up with a very ugly error page and not our pretty one.
72
    if ( $error && !$env->{'plack.middleware.Koha.CSRF'} ) {
75
    if ( $error && !$env->{'plack.middleware.Koha.CSRF'} ) {
73
76
74
        #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here
77
        #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here
75
- 

Return to bug 36148