Bug 36560: (QA follow-up) Tidy code

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5f2807b370)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2024-10-25 11:45:32 +00:00 committed by Lucas Gass
parent b8214ffb4a
commit 400435d4fb
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ sub call {
my $request_method = $req->method // q{};
my $uri = $req->uri // q{};
my $referer = $req->referer // q{No referer};
my $request_path = $req->path // q{};
my $request_path = $req->path // q{};
my %path_exceptions = (
'/ilsdi.pl' => 1,
@ -53,8 +53,8 @@ sub call {
#NOTE: Ignore ErrorDocument requests for CSRF
if ( $env->{'psgix.errordocument.SCRIPT_NAME'} ) {
return $self->app->($env);
}
elsif ( $path_exceptions{$request_path} ){
} elsif ( $path_exceptions{$request_path} ) {
#NOTE: Ignore path exceptions for CSRF
return $self->app->($env);
}