From 6afd4a9d0143adfc059da860eeca9c19508d623b Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 24 Apr 2020 10:25:04 +0200 Subject: [PATCH] Bug 20582: Suppress warning in CGIBinKoha.pm --- Koha/App/Plugin/CGIBinKoha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/App/Plugin/CGIBinKoha.pm b/Koha/App/Plugin/CGIBinKoha.pm index a7fba5ae7c..197e9f70f1 100644 --- a/Koha/App/Plugin/CGIBinKoha.pm +++ b/Koha/App/Plugin/CGIBinKoha.pm @@ -85,7 +85,7 @@ sub _psgi_env { # Starman sets PATH_INFO to the same value of SCRIPT_NAME, which confuses # CGI and causes the redirect after OPAC login to fail - delete $env->{PATH_INFO} if ($env->{PATH_INFO} eq $env->{SCRIPT_NAME}); + delete $env->{PATH_INFO} if ($env->{PATH_INFO} && $env->{PATH_INFO} eq $env->{SCRIPT_NAME}); for my $name (@{ $c->req->headers->names }) { my $value = $c->req->headers->header($name); -- 2.20.1