From 7a3cd7676190a78250cc9e7ad790bac43ef1b68f 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 Signed-off-by: Victor Grousset/tuxayo --- 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.26.2