Bug 36148: Add explanatory notes

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
David Cook 2024-02-23 05:15:24 +00:00 committed by Jonathan Druart
parent d3687f0b62
commit 3e90c5517e
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
1 changed files with 3 additions and 0 deletions

View File

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